diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-02-04 16:50:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 16:50:08 +0100 |
commit | 6dac157650c1b48f8413e1a5271b94599d7a7c50 (patch) | |
tree | 3c274d88402e25ea6e1555f783fe6a0732256a28 /pkgs/tools | |
parent | 5076c88be55626165bfb38529af8cac39e028446 (diff) | |
parent | d80115a09b4ab8def48803243e138cb6b389c3b6 (diff) |
Merge pull request #88927 from Moredread/zerofree-manpage
zerofree: install manpage and COPYING file
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/filesystems/zerofree/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/tools/filesystems/zerofree/default.nix b/pkgs/tools/filesystems/zerofree/default.nix index 2489357f73f94..1447ca36a1364 100644 --- a/pkgs/tools/filesystems/zerofree/default.nix +++ b/pkgs/tools/filesystems/zerofree/default.nix @@ -1,6 +1,11 @@ -{ lib, stdenv, fetchurl, e2fsprogs }: +{ lib, stdenv, fetchurl, installShellFiles, e2fsprogs }: -stdenv.mkDerivation rec { +let + manpage = fetchurl { + url = "https://manpages.ubuntu.com/manpages.gz/xenial/man8/zerofree.8.gz"; + sha256 = "0y132xmjl02vw41k794psa4nmjpdyky9f6sf0h4f7rvf83z3zy4k"; + }; +in stdenv.mkDerivation rec { pname = "zerofree"; version = "1.1.1"; @@ -9,12 +14,14 @@ stdenv.mkDerivation rec { sha256 = "0rrqfa5z103ws89vi8kfvbks1cfs74ix6n1wb6vs582vnmhwhswm"; }; - buildInputs = [ e2fsprogs ]; + buildInputs = [ e2fsprogs installShellFiles ]; installPhase = '' - mkdir -p $out/bin + mkdir -p $out/bin $out/share/zerofree cp zerofree $out/bin -''; + cp COPYING $out/share/zerofree/COPYING + installManPage ${manpage} + ''; meta = { homepage = "https://frippery.org/uml/"; |