mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
20 lines
430 B
Nix
20 lines
430 B
Nix
|
{ stdenv, fetchurl }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "musl-getconf";
|
||
|
src = fetchurl {
|
||
|
url = "https://raw.githubusercontent.com/alpinelinux/aports/48b16204aeeda5bc1f87e49c6b8e23d9abb07c73/main/musl/getconf.c";
|
||
|
sha256 = "0z14ml5343p5gapxw9fnbn2r72r7v2gk8662iifjrblh6sxhqzfq";
|
||
|
};
|
||
|
|
||
|
unpackPhase = ":";
|
||
|
|
||
|
buildPhase = ''$CC $src -o getconf'';
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp getconf $out/bin/
|
||
|
'';
|
||
|
}
|
||
|
|
||
|
|