diff options
author | Artturin <Artturin@artturin.com> | 2022-05-10 04:57:46 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-05-10 04:57:46 +0300 |
commit | a0d4618e7f0ad07c308086b627dddcb9cd91f5ad (patch) | |
tree | c3d6acae019d65a35ac6710cbe0bde404f293249 /pkgs/development/compilers/crystal | |
parent | ecc106108cc2fd868be1624607dc1065ccb67fd0 (diff) | |
download | nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar.gz nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar.bz2 nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar.lz nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar.xz nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.tar.zst nixpkgs-a0d4618e7f0ad07c308086b627dddcb9cd91f5ad.zip |
buildCrystalPackage: enable strictDeps
it improves package correctness and keeps cross-compilation in good health there aren't many uses of buildCrystalPackage in nixpkgs yet so imo its safe to turn it on python builder, rust build, go builder, and others all turn it on
Diffstat (limited to 'pkgs/development/compilers/crystal')
-rw-r--r-- | pkgs/development/compilers/crystal/build-package.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/compilers/crystal/build-package.nix b/pkgs/development/compilers/crystal/build-package.nix index ce8f0c32537..215c3d37d88 100644 --- a/pkgs/development/compilers/crystal/build-package.nix +++ b/pkgs/development/compilers/crystal/build-package.nix @@ -72,16 +72,17 @@ stdenv.mkDerivation (mkDerivationArgs // { PREFIX = placeholder "out"; - buildInputs = args.buildInputs or [ ] ++ [ crystal ] - ++ lib.optional (format != "crystal") shards; + strictDeps = true; + buildInputs = args.buildInputs or [ ] ++ [ crystal ]; nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [ + crystal git installShellFiles removeReferencesTo pkg-config which - ]; + ] ++ lib.optional (format != "crystal") shards; buildPhase = args.buildPhase or (lib.concatStringsSep "\n" ([ "runHook preBuild" |