hello-unfree: init at 1.0 (#41763)

Also add `version` attribute to GNU `hello` while we are at it.
This commit is contained in:
Jan Malakhovski 2018-06-09 20:14:36 +00:00 committed by xeji
parent fc618a15e8
commit ee1550b763
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{ stdenv }:
stdenv.mkDerivation rec {
name = "example-unfree-package-${version}";
version = "1.0";
phases = [ "installPhase" "fixupPhase" ];
installPhase = ''
mkdir -p $out/bin
cat > $out/bin/hello-unfree << EOF
#!/bin/sh
echo "Hello, you are running an unfree system!"
EOF
chmod +x $out/bin/hello-unfree
'';
meta = {
description = "An example package with unfree license (for testing)";
license = stdenv.lib.licenses.unfree;
maintainers = [ stdenv.lib.maintainers.oxij ];
};
}

View file

@ -1,7 +1,8 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "hello-2.10";
name = "hello-${version}";
version = "2.10";
src = fetchurl {
url = "mirror://gnu/hello/${name}.tar.gz";

View file

@ -16297,6 +16297,7 @@ with pkgs;
};
hello = callPackage ../applications/misc/hello { };
hello-unfree = callPackage ../applications/misc/hello-unfree { };
helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { };