Initial flake hub – oleks
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ stdenv }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "hello-world";
|
||||
version = "1.0.0";
|
||||
|
||||
src = builtins.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/tools/hello/hello.c";
|
||||
sha256 = "1p9sc9h1b6k7bk25n5g0w9gwy6fxlkchr5hpmxczg4bvp6jv93q6";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/hello-world
|
||||
chmod +x $out/bin/hello-world
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tiny hello‑world program used as an example package";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user