diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/hello-unfree')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/hello-unfree/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/hello-unfree/default.nix b/nixpkgs/pkgs/applications/misc/hello-unfree/default.nix new file mode 100644 index 000000000000..a5a9187ab0f2 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/hello-unfree/default.nix @@ -0,0 +1,23 @@ +{ stdenv, runtimeShell }: + +stdenv.mkDerivation { + pname = "example-unfree-package"; + version = "1.0"; + + phases = [ "installPhase" "fixupPhase" ]; + + installPhase = '' + mkdir -p $out/bin + cat > $out/bin/hello-unfree << EOF + #!${runtimeShell} + 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 ]; + }; +} |