mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 11:47:31 +00:00
Merge pull request #172271 from Artturin/crystalbuildstrict
This commit is contained in:
commit
197681059f
@ -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"
|
||||
|
@ -145,9 +145,10 @@ let
|
||||
export CRYSTAL_CACHE_DIR=$TMP
|
||||
'';
|
||||
|
||||
buildInputs = commonBuildInputs extraBuildInputs;
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ binary makeWrapper which pkg-config llvmPackages.llvm ];
|
||||
buildInputs = commonBuildInputs extraBuildInputs;
|
||||
|
||||
makeFlags = [
|
||||
"CRYSTAL_CONFIG_VERSION=${version}"
|
||||
|
@ -18,7 +18,8 @@ crystal.buildCrystalPackage rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jq libxml2 ];
|
||||
buildInputs = [ libxml2 ];
|
||||
checkInputs = [ jq ];
|
||||
|
||||
format = "shards";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, crystal, coreutils, makeWrapper }:
|
||||
{ lib, fetchFromGitHub, crystal, coreutils, makeWrapper, bash }:
|
||||
|
||||
crystal.buildCrystalPackage rec {
|
||||
pname = "scry";
|
||||
@ -19,6 +19,7 @@ crystal.buildCrystalPackage rec {
|
||||
format = "shards";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ bash ];
|
||||
|
||||
shardsFile = ./shards.nix;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, crystal, fetchFromGitHub, fetchurl, jq }:
|
||||
{ lib, crystal, fetchFromGitHub, fetchurl, jq, bash }:
|
||||
let
|
||||
icon = fetchurl {
|
||||
url = "https://github.com/mawww/kakoune/raw/master/doc/kakoune_logo.svg";
|
||||
@ -16,6 +16,7 @@ crystal.buildCrystalPackage rec {
|
||||
hash = "sha256-xFrxbnZl/49vGKdkESPa6LpK0ckq4Jv5GNLL/G0qA1w=";
|
||||
};
|
||||
|
||||
buildInputs = [ bash ];
|
||||
propagatedUserEnvPkgs = [ jq ];
|
||||
|
||||
format = "shards";
|
||||
|
Loading…
Reference in New Issue
Block a user