diff options
author | Peter Hoeg <peter@hoeg.com> | 2022-03-26 00:00:49 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2022-03-28 09:16:31 +0800 |
commit | c1a928b30bcc77456ea2db8df464eae865e25e7d (patch) | |
tree | 5d3ef1671d424642ea690ced1a95bf8f63207976 /pkgs/development/compilers/crystal | |
parent | 61acf3518d197e033a8211234d7aa2a4e826f521 (diff) |
crystal: remove pointless reference to crystal.lib
Diffstat (limited to 'pkgs/development/compilers/crystal')
-rw-r--r-- | pkgs/development/compilers/crystal/build-package.nix | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/pkgs/development/compilers/crystal/build-package.nix b/pkgs/development/compilers/crystal/build-package.nix index a44eaeb369b6c..1bdc8989cf1d8 100644 --- a/pkgs/development/compilers/crystal/build-package.nix +++ b/pkgs/development/compilers/crystal/build-package.nix @@ -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" ])); |