git.iko.soy/typeable/nixpkgs
on master help sign in
vue: reimplement using mkDerivation
commita579886b2b04908bb0bc95b751bf0e7e3ffeb59d authorJoachim Fasting <joachifm@fastmail.fm> dateFri 17 Apr 2015, 22:11 (12 years ago) parentfd9c139
1 file changed+16−39
pkgs/applications/misc/vue/default.nix+16−39
pkgs/applications/misc/vue/default.nix+16−39
@@ -1,50 +1,27 @@
1−x@{builderDefsPackage
2− , jre, unzip
3− , ...}:
4−builderDefsPackage
5−(a :
6−let
7− helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8− [];
1+{ stdenv, fetchurl, jre }:
92
10− buildInputs = map (n: builtins.getAttr n x)
11− (builtins.attrNames (builtins.removeAttrs x helperArgNames));
12− sourceInfo = rec {
13− baseName="vue";
14− version="3.2.2";
15− name="${baseName}-${version}";
16− url="releases.atech.tufts.edu/jenkins/job/VUE/64/deployedArtifacts/download/artifact.2";
17− hash="0sb1kgan8fvph2cqfxk3906cwx5wy83zni2vlz4zzi6yg4zvfxld";
3+stdenv.mkDerivation rec {
4+ name = "vue-${version}";
5+ version = "3.2.2";
6+ src = fetchurl {
7+ url = "releases.atech.tufts.edu/jenkins/job/VUE/64/deployedArtifacts/download/artifact.2";
8+ sha256 = "0sb1kgan8fvph2cqfxk3906cwx5wy83zni2vlz4zzi6yg4zvfxld";
189 };
19−in
20−rec {
21− src = a.fetchurl {
22− url = sourceInfo.url;
23− sha256 = sourceInfo.hash;
24− };
25−
26− inherit (sourceInfo) name version;
27− inherit buildInputs;
2810
29− /* doConfigure should be removed if not needed */
30− phaseNames = ["doDeploy"];
11+ phases = "installPhase";
3112
32− doDeploy = a.fullDepEntry ''
13+ installPhase = ''
3314 mkdir -p "$out"/{share/vue,bin}
3415 cp ${src} "$out/share/vue/vue.jar"
35− echo '#!${a.stdenv.shell}' >> "$out/bin/vue"
36− echo '${a.jre}/bin/java -jar "'"$out/share/vue/vue.jar"'" "$@"' >> "$out/bin/vue"
16+ echo '#!${stdenv.shell}' >> "$out/bin/vue"
17+ echo '${jre}/bin/java -jar "'"$out/share/vue/vue.jar"'" "$@"' >> "$out/bin/vue"
3718 chmod a+x "$out/bin/vue"
38− '' ["addInputs" "defEnsureDir"];
19+ '';
3920
4021 meta = {
4122 description = "Visual Understanding Environment - mind mapping software";
42− maintainers = with a.lib.maintainers;
43− [
44− raskin
45− ];
46− platforms = with a.lib.platforms;
47− linux;
48− license = a.lib.licenses.free; # Apache License fork, actually
23+ maintainers = with stdenv.lib.maintainers; [ raskin ];
24+ platforms = with stdenv.lib.platforms; linux;
25+ license = stdenv.lib.licenses.free; # Apache License fork, actually
4926 };
50−}) x
27+}