haskell-bustle: simplify the override now that those changes are in cabal2nix
Might be of interest to @jtojnar.
This commit is contained in:
parent
6d068993b5
commit
5e90d04ee7
@ -602,41 +602,26 @@ self: super: {
|
|||||||
# https://github.com/athanclark/sets/issues/2
|
# https://github.com/athanclark/sets/issues/2
|
||||||
sets = dontCheck super.sets;
|
sets = dontCheck super.sets;
|
||||||
|
|
||||||
bustle = pkgs.lib.pipe super.bustle [
|
# Install icons, metadata and cli program.
|
||||||
# Do not build hgettext as it is broken
|
bustle = overrideCabal super.bustle (drv: {
|
||||||
# https://gitlab.freedesktop.org/bustle/bustle/issues/13
|
buildDepends = [ pkgs.libpcap ];
|
||||||
(bustle: bustle.override { hgettext = null; })
|
buildTools = with pkgs.buildPackages; [ gettext perl help2man ];
|
||||||
(bustle: disableCabalFlag bustle "hgettext")
|
patches = [
|
||||||
|
# fix build
|
||||||
# Bustle specifies OtherLicense even though the code is actually LGPL
|
# https://gitlab.freedesktop.org/bustle/bustle/merge_requests/14
|
||||||
# https://gitlab.freedesktop.org/bustle/bustle/merge_requests/17
|
(pkgs.fetchpatch {
|
||||||
(bustle: bustle.overrideAttrs (attrs: {
|
url = "https://gitlab.freedesktop.org/bustle/bustle/commit/ee4b81cbc232d47ba9940f1987777b17452e71ff.patch";
|
||||||
meta = builtins.removeAttrs attrs.meta [ "hydraPlatforms" ] // {
|
sha256 = "0v9cvbmrma5jcqcg1narpm1549h0cg8mr6i00qxmq0x6hs04dnwa";
|
||||||
license = pkgs.lib.licenses.lgpl21Plus;
|
})
|
||||||
};
|
(pkgs.fetchpatch {
|
||||||
}))
|
url = "https://gitlab.freedesktop.org/bustle/bustle/commit/aae6843f51f54679d440fb3813e61355dc8406b9.patch";
|
||||||
|
sha256 = "1a8hr38hd1gdkqhsy56hyl7njw8ci79iigr81aalkb7hn4ckvh2a";
|
||||||
# Install icons, metadata and cli program.
|
})
|
||||||
(bustle: overrideCabal bustle (drv: {
|
];
|
||||||
buildDepends = [ pkgs.libpcap ];
|
postInstall = ''
|
||||||
buildTools = with pkgs.buildPackages; [ gettext perl help2man ];
|
make install PREFIX=$out
|
||||||
patches = [
|
'';
|
||||||
# fix build
|
});
|
||||||
# https://gitlab.freedesktop.org/bustle/bustle/merge_requests/14
|
|
||||||
(pkgs.fetchpatch {
|
|
||||||
url = "https://gitlab.freedesktop.org/bustle/bustle/commit/ee4b81cbc232d47ba9940f1987777b17452e71ff.patch";
|
|
||||||
sha256 = "0v9cvbmrma5jcqcg1narpm1549h0cg8mr6i00qxmq0x6hs04dnwa";
|
|
||||||
})
|
|
||||||
(pkgs.fetchpatch {
|
|
||||||
url = "https://gitlab.freedesktop.org/bustle/bustle/commit/aae6843f51f54679d440fb3813e61355dc8406b9.patch";
|
|
||||||
sha256 = "1a8hr38hd1gdkqhsy56hyl7njw8ci79iigr81aalkb7hn4ckvh2a";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
postInstall = ''
|
|
||||||
make install PREFIX=$out
|
|
||||||
'';
|
|
||||||
}))
|
|
||||||
];
|
|
||||||
|
|
||||||
# Byte-compile elisp code for Emacs.
|
# Byte-compile elisp code for Emacs.
|
||||||
ghc-mod = overrideCabal super.ghc-mod (drv: {
|
ghc-mod = overrideCabal super.ghc-mod (drv: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user