gxemul: get rid of composableDerivation
This commit is contained in:
parent
ae3fc70ede
commit
0cd1f6bb51
@ -1,12 +1,8 @@
|
|||||||
{ stdenv, composableDerivation, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
let edf = composableDerivation.edf;
|
stdenv.mkDerivation rec {
|
||||||
version = "0.6.0.1";
|
name = "gxemul-${version}";
|
||||||
name = "gxemul-${version}";
|
version = "0.6.0.1";
|
||||||
in
|
|
||||||
|
|
||||||
composableDerivation.composableDerivation {} {
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://gxemul.sourceforge.net/src/${name}.tar.gz";
|
url = "http://gxemul.sourceforge.net/src/${name}.tar.gz";
|
||||||
@ -15,21 +11,14 @@ composableDerivation.composableDerivation {} {
|
|||||||
|
|
||||||
configurePhase = "./configure";
|
configurePhase = "./configure";
|
||||||
|
|
||||||
installPhase = "mkdir -p \$out/bin; cp gxemul \$out/bin;";
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin;
|
||||||
mergeAttrBy = { installPhase = a : b : "${a}\n${b}"; };
|
mkdir -p $out/share/${name};
|
||||||
|
cp gxemul $out/bin;
|
||||||
flags = {
|
cp -r doc $out/share/${name};
|
||||||
doc = { installPhase = "mkdir -p \$out/share/${name}; cp -r doc \$out/share/${name};"; implies = "man"; };
|
cp -r demos $out/share/${name};
|
||||||
demos = { installPhase = "mkdir -p \$out/share/${name}; cp -r demos \$out/share/${name};"; };
|
cp -r ./man $out/;
|
||||||
man = { installPhase = "cp -r ./man \$out/;";};
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
cfg = {
|
|
||||||
docSupport = true;
|
|
||||||
demosSupport = true;
|
|
||||||
manSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
@ -45,5 +34,4 @@ composableDerivation.composableDerivation {} {
|
|||||||
'';
|
'';
|
||||||
homepage = http://gxemul.sourceforge.net/;
|
homepage = http://gxemul.sourceforge.net/;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user