hello-unfree: init at 1.0 (#41763)
Also add `version` attribute to GNU `hello` while we are at it.
This commit is contained in:
parent
fc618a15e8
commit
ee1550b763
23
pkgs/applications/misc/hello-unfree/default.nix
Normal file
23
pkgs/applications/misc/hello-unfree/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hello-2.10";
|
name = "hello-${version}";
|
||||||
|
version = "2.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/hello/${name}.tar.gz";
|
url = "mirror://gnu/hello/${name}.tar.gz";
|
||||||
|
@ -16297,6 +16297,7 @@ with pkgs;
|
|||||||
};
|
};
|
||||||
|
|
||||||
hello = callPackage ../applications/misc/hello { };
|
hello = callPackage ../applications/misc/hello { };
|
||||||
|
hello-unfree = callPackage ../applications/misc/hello-unfree { };
|
||||||
|
|
||||||
helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { };
|
helmholtz = callPackage ../applications/audio/pd-plugins/helmholtz { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user