init and add hello-2.2

This commit is contained in:
xkm
2026-02-24 16:05:13 +08:00
commit ea1518da45
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
result

1
STDENV.md Normal file
View File

@@ -0,0 +1 @@
offical doc: https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md

12
hello.nix Normal file
View File

@@ -0,0 +1,12 @@
let
pkgs = import <nixpkgs> {};
inherit (pkgs) stdenv fetchurl;
in
stdenv.mkDerivation (finalAttrs: {
pname = "hello";
version = "2.2";
src = fetchurl {
url = "https://ftp.gnu.org/gnu/hello/hello-${finalAttrs.version}.tar.gz";
hash = "sha256-aaKGGx/OxlfBoOyKh704+48AcqHewIX91WU9qsm+V1E=";
};
})