mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 07:49:24 +08:00
19 lines
375 B
Nix
19 lines
375 B
Nix
{ stdenv, src, perl, coreutils }: stdenv.mkDerivation
|
|
{
|
|
name = "atat";
|
|
inherit src;
|
|
nativeBuildInputs = [ perl ];
|
|
configurePhase =
|
|
''
|
|
patchShebangs src
|
|
echo "#!/bin/sh" > safecp
|
|
echo "cp \"\$@\"" >> safecp
|
|
'';
|
|
buildPhase = "make -C src -j$NIX_BUILD_CORES";
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/bin
|
|
make -C src BINDIR=$out/bin install
|
|
'';
|
|
}
|