diff options
author | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2020-04-10 09:30:33 +0900 |
---|---|---|
committer | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2020-07-18 14:23:23 +0900 |
commit | 633f21111314ac3ee34d9103e72f7de08cd12daf (patch) | |
tree | 3e43043342c7fdc3ba225dbddf008331be06f51d /pkgs/games/cataclysm-dda | |
parent | ecf7b57e1221e72522d4c5bb1e39f63449b72582 (diff) |
cataclysm-dda-git: make it overridable with git revision
'cataclysm-dda-git.overrideAttrs (_: { version = ...; src = fetchFromGitHub { ... }; })'
did not update VERSION make flag correctly.
With this change, one can override 'cataclysm-dda-git' correctly and
more easily:
cataclysm-dda-git.override { version = ...; rev = ...; sha256 = ...; }
Diffstat (limited to 'pkgs/games/cataclysm-dda')
-rw-r--r-- | pkgs/games/cataclysm-dda/git.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/games/cataclysm-dda/git.nix b/pkgs/games/cataclysm-dda/git.nix index 1113fe116dcc..36f37f7aeba4 100644 --- a/pkgs/games/cataclysm-dda/git.nix +++ b/pkgs/games/cataclysm-dda/git.nix @@ -2,6 +2,9 @@ , tiles ? true, Cocoa , debug ? false , useXdgDir ? false +, version ? "2019-11-22" +, rev ? "a6c8ece992bffeae3788425dd4b3b5871e66a9cd" +, sha256 ? "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab" }: let @@ -11,13 +14,12 @@ let self = common.overrideAttrs (common: rec { pname = common.pname + "-git"; - version = "2019-11-22"; + inherit version; src = fetchFromGitHub { owner = "CleverRaven"; repo = "Cataclysm-DDA"; - rev = "a6c8ece992bffeae3788425dd4b3b5871e66a9cd"; - sha256 = "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab"; + inherit rev sha256; }; makeFlags = common.makeFlags ++ [ |