mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
zerofree: install manpage and COPYING file
This commit is contained in:
parent
cb4fe8e0cd
commit
d80115a09b
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user