This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
666 B
Nix
33 lines
666 B
Nix
{
|
|
lib,
|
|
multiStdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
multiStdenv.mkDerivation rec {
|
|
pname = "statifier";
|
|
version = "1.7.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
|
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
|
|
};
|
|
|
|
phaseNames = [
|
|
"patchPhase"
|
|
"installPhase"
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
|
sed -e s@/bin/bash@"${multiStdenv.shell}"@g -i src/*.sh
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool for creating static Linux binaries";
|
|
mainProgram = "statifier";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Only;
|
|
};
|
|
}
|