nixpkgs/pkgs/applications/misc/hello-unfree/default.nix
Jan Malakhovski ee1550b763 hello-unfree: init at 1.0 (#41763)
Also add `version` attribute to GNU `hello` while we are at it.
2018-06-09 22:14:36 +02:00

24 lines
532 B
Nix

{ 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 ];
};
}