init and add hello-2.2
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
result
|
||||||
1
STDENV.md
Normal file
1
STDENV.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
offical doc: https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md
|
||||||
12
hello.nix
Normal file
12
hello.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user