first commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
result
|
||||||
|
*/result
|
||||||
8
hello/default.nix
Normal file
8
hello/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
let
|
||||||
|
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.11";
|
||||||
|
pkgs = import nixpkgs { config = {}; overlays = []; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
hello = pkgs.callPackage ./hello.nix { };
|
||||||
|
icat = pkgs.callPackage ./icat.nix { };
|
||||||
|
}
|
||||||
14
hello/hello.nix
Normal file
14
hello/hello.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchzip,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "hello";
|
||||||
|
version = "2.12.1";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz";
|
||||||
|
sha256 = "sha256-1kJjhtlsAkpNB7f6tZEs+dbKd8z7KoNHyDHEJ0tmhnc=";
|
||||||
|
};
|
||||||
|
}
|
||||||
27
hello/icat.nix
Normal file
27
hello/icat.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
imlib2,
|
||||||
|
xorg
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "icat";
|
||||||
|
version = "v0.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "atextor";
|
||||||
|
repo = "icat";
|
||||||
|
rev = "v0.5";
|
||||||
|
sha256 = "0wyy2ksxp95vnh71ybj1bbmqd5ggp13x3mk37pzr99ljs9awy8ka";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ imlib2 xorg.libX11 ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp icat $out/bin
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user