3
0
Fork 0
forked from mirrors/nixpkgs

git-ignore: split outputs

Use a separate `man` output[1]. All outputs will be installed when using
the package i.e. with `nix-env -f . -iA gitAndTools.git-ignore`.

[1] https://nixos.org/nix/manual/#ssec-derivation
This commit is contained in:
Maximilian Bosch 2019-04-20 08:00:24 +02:00
parent c5e963f36c
commit dd5ac26e78
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -21,9 +21,10 @@ buildRustPackage rec {
darwin.apple_sdk.frameworks.Security
];
outputs = [ "out" "man" ];
preFixup = ''
mkdir -p "$out/man/man1"
cp target/release/build/git-ignore-*/out/git-ignore.1 "$out/man/man1/"
mkdir -p "$man/man/man1"
cp target/release/build/git-ignore-*/out/git-ignore.1 "$man/man/man1/"
'';
meta = with stdenv.lib; {