From b95534aaea9bef9257e4725ebf2abe59e3611539 Mon Sep 17 00:00:00 2001 From: Jappie Klooster Date: Thu, 16 Apr 2020 14:27:36 +0200 Subject: cut-the-crap: init at 1.0.0 --- pkgs/development/haskell-modules/configuration-nix.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/development/haskell-modules') diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index a8aec8e018ec..ba885c0ecd5f 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -724,4 +724,13 @@ self: super: builtins.intersectAttrs super { # dhall_1_29_0 is no longer used, since more recent versions of dhall don't # access the network in checks. dhall_1_29_0 = dontCheck super.dhall_1_29_0; + + cut-the-crap = + let path = pkgs.stdenv.lib.makeBinPath [ pkgs.ffmpeg ]; + in overrideCabal (addBuildTool super.cut-the-crap pkgs.makeWrapper) (_drv: { + postInstall = '' + wrapProgram $out/bin/cut-the-crap \ + --prefix PATH : "${path}" + ''; + }); } -- cgit 1.4.1