first commit

This commit is contained in:
2026-02-24 14:03:16 -05:00
commit 75504d20cd
4 changed files with 51 additions and 0 deletions

8
hello/default.nix Normal file
View 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
View 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
View 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
'';
}