mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
crystal: remove pointless reference to crystal.lib
This commit is contained in:
parent
61acf3518d
commit
c1a928b30b
@ -1,4 +1,15 @@
|
||||
{ stdenv, lib, crystal, shards, git, pkg-config, which, linkFarm, fetchFromGitHub, installShellFiles }:
|
||||
{ stdenv
|
||||
, lib
|
||||
, crystal
|
||||
, shards
|
||||
, git
|
||||
, pkg-config
|
||||
, which
|
||||
, linkFarm
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, removeReferencesTo
|
||||
}:
|
||||
|
||||
{
|
||||
# Some projects do not include a lock file, so you can pass one
|
||||
@ -60,7 +71,13 @@ stdenv.mkDerivation (mkDerivationArgs // {
|
||||
buildInputs = args.buildInputs or [ ] ++ [ crystal ]
|
||||
++ lib.optional (format != "crystal") shards;
|
||||
|
||||
nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [ git installShellFiles pkg-config which ];
|
||||
nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [
|
||||
git
|
||||
installShellFiles
|
||||
removeReferencesTo
|
||||
pkg-config
|
||||
which
|
||||
];
|
||||
|
||||
buildPhase = args.buildPhase or (lib.concatStringsSep "\n" ([
|
||||
"runHook preBuild"
|
||||
@ -102,6 +119,7 @@ stdenv.mkDerivation (mkDerivationArgs // {
|
||||
installManPage man/*.?
|
||||
fi
|
||||
'') ++ [
|
||||
"remove-references-to -t ${lib.getLib crystal} $out/bin/*"
|
||||
"runHook postInstall"
|
||||
]));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user