]>
Commit | Line | Data |
---|---|---|
567ba6eb SW |
1 | self: super: |
2 | let | |
3 | checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs" | |
4 | (builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>); | |
5 | checkInputsName = | |
6 | if checkInputsAreNative then "nativeCheckInputs" else "checkInputs"; | |
7 | in { | |
5048e8ce SW |
8 | polite-merge = if builtins.hasAttr "polite-merge" super then |
9 | super.polite-merge | |
10 | else | |
11 | self.callPackage ({ fetchgit, git, stdenv, }: | |
12 | stdenv.mkDerivation rec { | |
13 | pname = "polite-merge"; | |
1d99b347 | 14 | version = "2.4"; |
5048e8ce | 15 | src = fetchgit { |
bbc804af | 16 | url = "https://git.scottworley.com/pub/git/polite-merge"; |
5048e8ce | 17 | rev = version; |
1d99b347 | 18 | sha256 = "1p6ivaay3bk4vvqqic7g23xrhkkq8z19zhsaxkav8kk90s2bmmza"; |
5048e8ce SW |
19 | }; |
20 | postUnpack = "patchShebangs ."; | |
567ba6eb | 21 | "${checkInputsName}" = [ git ]; |
5048e8ce SW |
22 | doCheck = true; |
23 | preInstall = "export prefix"; | |
24 | }) { }; | |
25 | } | |
26 |