format nix
This commit is contained in:
parent
6dd9b64e37
commit
de53a26819
69 changed files with 1585 additions and 1400 deletions
|
|
@ -1,30 +1,31 @@
|
|||
{ pkgs, lib }:
|
||||
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
}:
|
||||
# Thanks to Aires!
|
||||
# https://aires.fyi/blog/installing-a-custom-package-with-nix/
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "backrest";
|
||||
version = "v0.11.0";
|
||||
pname = "backrest";
|
||||
version = "v0.11.0";
|
||||
|
||||
src = builtins.fetchurl {
|
||||
url = "https://github.com/garethgeorge/backrest/releases/download/v0.11.0/backrest_Linux_x86_64.tar.gz";
|
||||
sha256 = "fd6c05339b6855f0acad001c2243d871f4621def04cef9eb3b452110fe175d49";
|
||||
};
|
||||
src = builtins.fetchurl {
|
||||
url = "https://github.com/garethgeorge/backrest/releases/download/v0.11.0/backrest_Linux_x86_64.tar.gz";
|
||||
sha256 = "fd6c05339b6855f0acad001c2243d871f4621def04cef9eb3b452110fe175d49";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
|
||||
dontUnpack = true;
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
tar -xf backrest_Darwin_x86_64.tar.gz
|
||||
install -D $src $out/backrest
|
||||
chmod a+x $out/backrest
|
||||
'';
|
||||
installPhase = ''
|
||||
tar -xf backrest_Darwin_x86_64.tar.gz
|
||||
install -D $src $out/backrest
|
||||
chmod a+x $out/backrest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/garethgeorge/backrest";
|
||||
description = "Backrest is a web UI and orchestrator for restic backup.";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/garethgeorge/backrest";
|
||||
description = "Backrest is a web UI and orchestrator for restic backup.";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
appimage-run
|
||||
openal
|
||||
];
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${pkgs.openal}/lib:$LD_LIBRARY_PATH"
|
||||
appimage-run Beyond-All-Reason-1.2988.0.AppImage
|
||||
'';
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
appimage-run
|
||||
openal
|
||||
];
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${pkgs.openal}/lib:$LD_LIBRARY_PATH"
|
||||
appimage-run Beyond-All-Reason-1.2988.0.AppImage
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue