pkgs/tools/nix: enable strictDeps
`fd "\.nix" pkgs/tools/nix | xargs rg "strictDeps" --files-without-match | xargs rg "buildRust|buildGo|buildPyt|buildNim" --files-without-match | xargs vim -p` checked with Artturin/diffing
This commit is contained in:
parent
94ce5a875a
commit
47ace7b0af
5 changed files with 10 additions and 3 deletions
|
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1vzbgz8y9gj4lszsx4iczfbrj373sl4wi43j7rp46zfcbw323d4r";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, coreutils, findutils, gnugrep, darwin
|
||||
{ stdenv, lib, coreutils, findutils, gnugrep, darwin, bash
|
||||
# Avoid having GHC in the build-time closure of all NixOS configurations
|
||||
, doCheck ? false, shellcheck
|
||||
}:
|
||||
|
@ -26,7 +26,9 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
|
||||
inherit doCheck;
|
||||
strictDeps = true;
|
||||
nativeCheckInputs = [ shellcheck ];
|
||||
buildInputs = [ bash ];
|
||||
|
||||
checkPhase = ''
|
||||
shellcheck ./nix-info
|
||||
|
|
|
@ -11,7 +11,8 @@ stdenv.mkDerivation {
|
|||
sha256 = "0yiqljamcj9x8z801bwj7r30sskrwv4rm6sdf39j83jqql1fyq7y";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
(haskellPackages.ghcWithPackages (hs: with hs; [ posix-escape ]))
|
||||
];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
|
||||
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nixos-generators";
|
||||
|
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
|
|||
rev = version;
|
||||
sha256 = "sha256-WecDwDY/hEcDQYzFnccCNa+5Umht0lfjx/d1qGDy/rQ=";
|
||||
};
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ bash ];
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/nixos-generate \
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
stdenv.mkDerivation rec {
|
||||
name = "nixos-option";
|
||||
src = ./.;
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ boost nix ];
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue