Commit 47ace7b0 authored by Artturin's avatar Artturin
Browse files

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
parent 94ce5a87
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
    sha256 = "1vzbgz8y9gj4lszsx4iczfbrj373sl4wi43j7rp46zfcbw323d4r";
  };

  strictDeps = true;
  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
+3 −1
Original line number Diff line number Diff line
{ 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
+2 −1
Original line number Diff line number Diff line
@@ -11,7 +11,8 @@ stdenv.mkDerivation {
    sha256 = "0yiqljamcj9x8z801bwj7r30sskrwv4rm6sdf39j83jqql1fyq7y";
  };

  buildInputs  = [
  strictDeps = true;
  nativeBuildInputs  = [
    (haskellPackages.ghcWithPackages (hs: with hs; [ posix-escape ]))
  ];

+3 −1
Original line number Diff line number Diff line
{ 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 \
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
stdenv.mkDerivation rec {
  name = "nixos-option";
  src = ./.;
  strictDeps = true;
  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ boost nix ];
  meta = with lib; {