mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
b56ed35851
applyAndFun has a bug resulting in the same arg beeing added more than once when using a concatenating merge function for the attr set. I've tried giving the function a name "overridableDelayableArgs" which resembles its usage much more. important refactoring: applyAndFun had .fun and .funMerge only when passing the merge function lib.mergeOrApply composableDerivation { initial = { ... }; } to overridableDelayableArgs has always .replace and .merge composableDerivation {} { ... } svn path=/nixpkgs/trunk/; revision=14428
36 lines
1004 B
Nix
36 lines
1004 B
Nix
args: with args;
|
|
let edf = composableDerivation.edf;
|
|
name = "gxemul-0.4.6"; in
|
|
composableDerivation.composableDerivation {} {
|
|
|
|
inherit name;
|
|
flags = {
|
|
doc = { installPhase = "ensureDir \$out/share/${name}; cp -r doc \$out/share/${name};"; implies = "man"; };
|
|
demos = { installPhase = "ensureDir \$out/share/${name}; cp -r demos \$out/share/${name};"; };
|
|
man = { installPhase = "cp -r ./man \$out/;";};
|
|
};
|
|
|
|
cfg = {
|
|
docSupport = true;
|
|
demosSupport = true;
|
|
manSupport = true;
|
|
};
|
|
|
|
installPhase = "ensureDir \$out/bin; cp gxemul \$out/bin;";
|
|
|
|
src = fetchurl {
|
|
url = http://gavare.se/gxemul/src/gxemul-0.4.6.tar.gz;
|
|
sha256 = "0hf3gi6hfd2qr5090zimfiddcjgank2q6m7dfsr81wwpxfbhb2z3";
|
|
};
|
|
|
|
configurePhase="./configure";
|
|
|
|
meta = {
|
|
license = "BSD";
|
|
description = "A Machine Emulator, Mainly emulates MIPS, but supports other CPU type";
|
|
homepage = http://gavare.se/gxemul/;
|
|
};
|
|
|
|
mergeAttrBy = { installPhase = a : b : "${a}\n${b}"; };
|
|
}
|