some cleanup of the package .nix file as recommended by @jtojnar
This commit is contained in:
parent
7840d00532
commit
bd50320cb1
@ -16,15 +16,15 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i "s|/bin/bash|${bash}/bin/bash|g" usertable.cpp
|
sed -i "s|/bin/bash|${bash}/bin/bash|g" usertable.cpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
installTargets = [ "install-man" ];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
||||||
# make install doesn't work because setuid and permissions
|
# make install doesn't work because setuid and permissions
|
||||||
# just manually install the binaries instead
|
# just manually install the binaries instead
|
||||||
cp incrond incrontab $out/bin/
|
cp incrond incrontab $out/bin/
|
||||||
|
|
||||||
# make install-man is fine for documentation
|
|
||||||
make install-man
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user