mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
dwarf-fortress: use fetchFromGitHub directly
This avoids creating a second derivation to copy things from the original. The new themes are now fixed output.
This commit is contained in:
parent
14555eab0f
commit
aba6a3d7f4
1 changed files with 5 additions and 11 deletions
|
@ -4,18 +4,12 @@ with builtins;
|
||||||
|
|
||||||
listToAttrs (map (v: {
|
listToAttrs (map (v: {
|
||||||
inherit (v) name;
|
inherit (v) name;
|
||||||
value = stdenv.mkDerivation {
|
value = fetchFromGitHub {
|
||||||
name = "${v.name}-${v.version}";
|
name = "${v.name}-${v.version}";
|
||||||
src = fetchFromGitHub {
|
owner = "DFgraphics";
|
||||||
owner = "DFgraphics";
|
repo = v.name;
|
||||||
repo = v.name;
|
rev = v.version;
|
||||||
rev = v.version;
|
sha256 = v.sha256;
|
||||||
sha256 = v.sha256;
|
|
||||||
};
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -r data raw $out
|
|
||||||
'';
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.matthewbauer ];
|
maintainers = [ maintainers.matthewbauer ];
|
||||||
|
|
Loading…
Reference in a new issue