From 75504d20cd1bf203f3a2fd80224504d4942d78b4 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 24 Feb 2026 14:03:16 -0500 Subject: [PATCH] first commit --- .gitignore | 2 ++ hello/default.nix | 8 ++++++++ hello/hello.nix | 14 ++++++++++++++ hello/icat.nix | 27 +++++++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100644 hello/default.nix create mode 100644 hello/hello.nix create mode 100644 hello/icat.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f891451 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +result +*/result \ No newline at end of file diff --git a/hello/default.nix b/hello/default.nix new file mode 100644 index 0000000..aa944c2 --- /dev/null +++ b/hello/default.nix @@ -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 { }; +} \ No newline at end of file diff --git a/hello/hello.nix b/hello/hello.nix new file mode 100644 index 0000000..a3e3525 --- /dev/null +++ b/hello/hello.nix @@ -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="; + }; +} diff --git a/hello/icat.nix b/hello/icat.nix new file mode 100644 index 0000000..54ff63e --- /dev/null +++ b/hello/icat.nix @@ -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 + ''; +}