diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-06-09 20:14:36 +0000 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-06-09 22:14:36 +0200 |
commit | ee1550b763c0fe100ded752de6cc11676951a346 (patch) | |
tree | 906f7c097977dfb01af4691d826e98d25a25a39c /pkgs/applications/misc/hello-unfree | |
parent | fc618a15e8be77035bbdf1ed9b6de2595cda7f14 (diff) | |
download | nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar.gz nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar.bz2 nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar.lz nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar.xz nixlib-ee1550b763c0fe100ded752de6cc11676951a346.tar.zst nixlib-ee1550b763c0fe100ded752de6cc11676951a346.zip |
hello-unfree: init at 1.0 (#41763)
Also add `version` attribute to GNU `hello` while we are at it.
Diffstat (limited to 'pkgs/applications/misc/hello-unfree')
-rw-r--r-- | pkgs/applications/misc/hello-unfree/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/misc/hello-unfree/default.nix b/pkgs/applications/misc/hello-unfree/default.nix new file mode 100644 index 000000000000..ef378b2c5ffb --- /dev/null +++ b/pkgs/applications/misc/hello-unfree/default.nix @@ -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 ]; + }; +} |