mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
40 lines
568 B
Nix
40 lines
568 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, pkg-config
|
|
, installShellFiles
|
|
, nix
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nixos-option";
|
|
|
|
src = ./src;
|
|
|
|
postInstall = ''
|
|
installManPage ${./nixos-option.8}
|
|
'';
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
buildInputs = [
|
|
boost
|
|
nix
|
|
];
|
|
cmakeFlags = [
|
|
"-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix"
|
|
];
|
|
|
|
meta = with lib; {
|
|
license = licenses.lgpl2Plus;
|
|
mainProgram = "nixos-option";
|
|
maintainers = [ ];
|
|
inherit (nix.meta) platforms;
|
|
};
|
|
}
|