diff --git a/flake.lock b/flake.lock index a2dddadda..e2a7f9d89 100644 --- a/flake.lock +++ b/flake.lock @@ -115,11 +115,11 @@ }, "haskell-flake": { "locked": { - "lastModified": 1705067885, - "narHash": "sha256-al2JqNIkXfLiVreqSJWly64Z6YVNphWBh4m3IxGIdYI=", + "lastModified": 1707835791, + "narHash": "sha256-oQbDPHtver9DO8IJCBMq/TVbscCkxuw9tIfBBti71Yk=", "owner": "srid", "repo": "haskell-flake", - "rev": "8a526aaf98cde6af6b2d1d368e9acb460ee34547", + "rev": "5113f700d6e92199fbe0574f7d12c775bb169702", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d158fa769..e1092dd66 100644 --- a/flake.nix +++ b/flake.nix @@ -93,9 +93,6 @@ tailwind.broken = false; tailwind.jailbreak = true; emanote = { name, pkgs, self, super, ... }: { - imports = [ - ./nix/removeReferencesTo.nix - ]; check = false; extraBuildDepends = [ pkgs.stork ]; separateBinOutput = false; # removeReferencesTo.nix doesn't work otherwise diff --git a/nix/removeReferencesTo.nix b/nix/removeReferencesTo.nix deleted file mode 100644 index 38c869317..000000000 --- a/nix/removeReferencesTo.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, mkCabalSettingOptions, ... }: - -let - inherit (lib) - types; -in -{ - options = mkCabalSettingOptions { - name = "removeReferencesTo"; - type = types.listOf types.package; - description = '' - Packages to remove references to. - - This is useful to ditch unnecessary data dependencies from your Haskell - executable so as to reduce its closure size. - - cf. - - https://github.com/NixOS/nixpkgs/pull/204675 - - https://srid.ca/remove-references-to - ''; - impl = disallowedReferences: drv: - drv.overrideAttrs (old: rec { - inherit disallowedReferences; - postInstall = (old.postInstall or "") + '' - ${lib.concatStrings (map (e: "echo Removing reference to: ${e}\n") disallowedReferences)} - ${lib.concatStrings (map (e: "remove-references-to -t ${e} $out/bin/*\n") disallowedReferences)} - ''; - }); - }; -}