Skip to content

Instantly share code, notes, and snippets.

@InternetUnexplorer
Created September 20, 2021 19:07
Show Gist options
  • Save InternetUnexplorer/b89749c5a0d6cdbded3d49d1f153d63b to your computer and use it in GitHub Desktop.
Save InternetUnexplorer/b89749c5a0d6cdbded3d49d1f153d63b to your computer and use it in GitHub Desktop.
Nix shell providing CKAN with a patched version of Mono that fixes https://github.com/KSP-CKAN/CKAN/issues/3359
{ pkgs ? import <nixpkgs> { } }:
let
patchedMono = pkgs.mono.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(pkgs.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/mono/mono/pull/21136.patch";
sha256 = "sha256-4mUkkRl2IoNjkZN8+1Ps3kvI9Tu2BnH4YqeRZ6A/UMU=";
})
];
});
in pkgs.mkShell {
buildInputs = with pkgs; [ (ckan.override (_: { mono = patchedMono; })) ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment