summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2022-03-26 00:00:49 +0800
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-03-28 01:21:07 +0000
commit963874e2dbbe0f830da7d4b06bce91119c3c4bde (patch)
treed10232ac8152151e52a7c29e8ffb49d1a010d39a
parentMerge pull request #166000 from NixOS/backport-165995-to-release-21.11 (diff)
downloadnixpkgs-origin/backport-165766-to-release-21.11.tar.gz
crystal: remove pointless reference to crystal.liborigin/backport-165766-to-release-21.11
(cherry picked from commit ba70ac13715900e0eb8f2f895369b9d0add5359e)
-rw-r--r--pkgs/development/compilers/crystal/build-package.nix22
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 2328e76ad770..4e0e8a193492 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"
]));