From 02297beade7813c6a716e53a5f1373f1123d8753 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Wed, 23 May 2018 23:37:33 -0500 Subject: treewide: add version to packages Lots of packages are missing versions in their name. This adds them where appropriate. These were found with this command: $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$' See issue #41007. --- pkgs/applications/altcoins/dapp.nix | 2 +- pkgs/applications/altcoins/mist.nix | 6 +++--- pkgs/applications/audio/renoise/default.nix | 2 +- pkgs/applications/editors/neovim/wrapper.nix | 2 +- pkgs/applications/editors/okteta/default.nix | 4 ++-- pkgs/applications/networking/gmailieer/default.nix | 2 +- pkgs/applications/office/atlassian-cli/default.nix | 6 +++--- pkgs/applications/science/machine-learning/torch/torch-distro.nix | 2 ++ pkgs/applications/science/misc/simgrid/default.nix | 7 +++---- .../version-management/git-and-tools/bfg-repo-cleaner/default.nix | 2 +- .../version-management/git-and-tools/gitweb/default.nix | 2 +- pkgs/applications/video/lightworks/default.nix | 2 +- 12 files changed, 20 insertions(+), 19 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/altcoins/dapp.nix b/pkgs/applications/altcoins/dapp.nix index 6ad66a24397f..a89725f6e30f 100644 --- a/pkgs/applications/altcoins/dapp.nix +++ b/pkgs/applications/altcoins/dapp.nix @@ -2,7 +2,7 @@ , seth, git, solc, shellcheck, nodejs, hevm }: stdenv.mkDerivation rec { - name = "dapp"; + name = "dapp-${version}"; version = "0.5.7"; src = fetchFromGitHub { diff --git a/pkgs/applications/altcoins/mist.nix b/pkgs/applications/altcoins/mist.nix index c112384f3d84..d80e8b521822 100644 --- a/pkgs/applications/altcoins/mist.nix +++ b/pkgs/applications/altcoins/mist.nix @@ -25,7 +25,7 @@ let categories = "Network;"; }; - mist = stdenv.mkDerivation { + mist = stdenv.lib.appendToName "unwrapped" (stdenv.mkDerivation { inherit name version; src = { @@ -53,10 +53,10 @@ let --set-rpath "${atomEnv.libPath}:$out/lib/mist" \ $out/lib/mist/mist ''; - }; + }); in buildFHSUserEnv { - name = "mist"; + name = "mist-${stdenv.lib.getVersion mist}"; targetPkgs = pkgs: with pkgs; [ mist diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index d02c551be8af..fd2c0993e756 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -9,7 +9,7 @@ let fileversion = "3_1_0"; in stdenv.mkDerivation rec { - name = "renoise"; + name = "renoise-${lib.replaceStrings ["_"] ["."] fileversion}"; buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; src = diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix index a27b5a41ac70..f1ec03cb42ee 100644 --- a/pkgs/applications/editors/neovim/wrapper.nix +++ b/pkgs/applications/editors/neovim/wrapper.nix @@ -51,7 +51,7 @@ let in stdenv.mkDerivation { - inherit name; + name = "neovim-${stdenv.lib.getVersion neovim}"; buildCommand = let bin="${neovim}/bin/nvim"; in '' if [ ! -x "${bin}" ] then diff --git a/pkgs/applications/editors/okteta/default.nix b/pkgs/applications/editors/okteta/default.nix index 770eb63dc69e..9bec148c7f29 100644 --- a/pkgs/applications/editors/okteta/default.nix +++ b/pkgs/applications/editors/okteta/default.nix @@ -9,9 +9,9 @@ let version = "17.12.3"; in mkDerivation rec { - name = "okteta"; + name = "okteta-${version}"; src = fetchurl { - url = "mirror://kde/stable/applications/${version}/src/${name}-${version}.tar.xz"; + url = "mirror://kde/stable/applications/${version}/src/${name}.tar.xz"; sha256 = "03wsv83l1cay2dpcsksad124wzan7kh8zxdw1h0yicn398kdbck4"; }; meta = { diff --git a/pkgs/applications/networking/gmailieer/default.nix b/pkgs/applications/networking/gmailieer/default.nix index c3085519ec4c..9b738fe3863f 100644 --- a/pkgs/applications/networking/gmailieer/default.nix +++ b/pkgs/applications/networking/gmailieer/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchFromGitHub, python3Packages }: python3Packages.buildPythonApplication rec { - name = "gmailieer"; + name = "gmailieer-${version}"; version = "0.6"; src = fetchFromGitHub { diff --git a/pkgs/applications/office/atlassian-cli/default.nix b/pkgs/applications/office/atlassian-cli/default.nix index a56c15bffb2a..15e3d120f20b 100644 --- a/pkgs/applications/office/atlassian-cli/default.nix +++ b/pkgs/applications/office/atlassian-cli/default.nix @@ -1,9 +1,9 @@ { stdenv, fetchzip, jre }: -stdenv.mkDerivation { - name = "atlassian-cli"; +stdenv.mkDerivation rec { + name = "atlassian-cli-${version}"; version = "7.8.0"; src = fetchzip { - url = https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-7.8.0-distribution.zip; + url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${name}-distribution.zip"; sha256 = "111s4d9m6vxq8jwh1d6ar1f4n5zmyjg7gi2vl3aq63kxbfld9vw7"; extraPostFetch = "chmod go-w $out"; }; diff --git a/pkgs/applications/science/machine-learning/torch/torch-distro.nix b/pkgs/applications/science/machine-learning/torch/torch-distro.nix index d8ce1d2c6280..85a4aa02e441 100644 --- a/pkgs/applications/science/machine-learning/torch/torch-distro.nix +++ b/pkgs/applications/science/machine-learning/torch/torch-distro.nix @@ -57,6 +57,8 @@ let in stdenv.mkDerivation (args // { + name = "${args.name}-${lua.luaversion}"; + inherit preBuild postInstall; inherit luadeps runtimeDeps; diff --git a/pkgs/applications/science/misc/simgrid/default.nix b/pkgs/applications/science/misc/simgrid/default.nix index 34ff510e1d8b..2b25d99de2a7 100644 --- a/pkgs/applications/science/misc/simgrid/default.nix +++ b/pkgs/applications/science/misc/simgrid/default.nix @@ -19,14 +19,13 @@ in stdenv.mkDerivation rec { major_version = "3"; minor_version = "17"; - version = "v${major_version}.${minor_version}"; - tagged_version = "${major_version}_${minor_version}"; - name = "simgrid"; + version = "${major_version}.${minor_version}"; + name = "simgrid-${version}"; src = fetchFromGitHub { owner = "simgrid"; repo = "simgrid"; - rev = "v3_17"; + rev = "v${major_version}_${minor_version}"; sha256 = "0ffs9w141qhw571jsa9sch1cnr332vs4sgj6dsiij2mc24m6wpb4"; #rev = "master"; #sha256 = "0qvh1jzc2lpnp8234kjx1x4g1a5kfdn6kb15vhk160qgvj98nyqm"; diff --git a/pkgs/applications/version-management/git-and-tools/bfg-repo-cleaner/default.nix b/pkgs/applications/version-management/git-and-tools/bfg-repo-cleaner/default.nix index 7bf83b5621b5..0d7729684163 100644 --- a/pkgs/applications/version-management/git-and-tools/bfg-repo-cleaner/default.nix +++ b/pkgs/applications/version-management/git-and-tools/bfg-repo-cleaner/default.nix @@ -8,7 +8,7 @@ in stdenv.mkDerivation { inherit version jarName; - name = "bfg-repo-cleaner"; + name = "bfg-repo-cleaner-${version}"; src = fetchurl { url = mavenUrl; diff --git a/pkgs/applications/version-management/git-and-tools/gitweb/default.nix b/pkgs/applications/version-management/git-and-tools/gitweb/default.nix index 0358f850c9ab..ce251e11d328 100644 --- a/pkgs/applications/version-management/git-and-tools/gitweb/default.nix +++ b/pkgs/applications/version-management/git-and-tools/gitweb/default.nix @@ -10,7 +10,7 @@ let sha256 = "0wksqma41z36dbv6w6iplkjfdm0ha3njp222fakyh4lismajr71p"; }; in stdenv.mkDerivation { - name = "gitweb"; + name = "gitweb-${stdenv.lib.getVersion git}"; src = git.gitweb; diff --git a/pkgs/applications/video/lightworks/default.nix b/pkgs/applications/video/lightworks/default.nix index d0376ca7e3de..4d34e08529f7 100644 --- a/pkgs/applications/video/lightworks/default.nix +++ b/pkgs/applications/video/lightworks/default.nix @@ -77,7 +77,7 @@ let # Lightworks expects some files in /usr/share/lightworks in buildFHSUserEnv rec { - name = "lightworks"; + name = "lightworks-${stdenv.lib.getVersion lightworks}"; targetPkgs = pkgs: [ lightworks -- cgit 1.4.1 From 04e5cf666511d6d84d20814557a04f2392fa4a83 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Thu, 24 May 2018 10:38:06 +0300 Subject: renoise: add platforms, derive src version from proper version string --- pkgs/applications/audio/renoise/default.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index fd2c0993e756..7cd695eb11da 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -6,31 +6,35 @@ # 2) Override the releasePath attribute to point to the location of the newly downloaded bundle. # Note: Renoise creates an individual build for each license which screws somewhat with the # use of functions like requireFile as the hash will be different for every user. -let fileversion = "3_1_0"; +let + srcVersion = version: lib.replaceStrings ["."] ["_"] version; in + stdenv.mkDerivation rec { - name = "renoise-${lib.replaceStrings ["_"] ["."] fileversion}"; - buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; + name = "renoise-${version}"; + version = "3.1.0"; src = if stdenv.system == "x86_64-linux" then if builtins.isNull releasePath then fetchurl { - url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86_64.tar.bz2"; - sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga"; + url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86_64.tar.bz2"; + sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga"; } else releasePath else if stdenv.system == "i686-linux" then if builtins.isNull releasePath then fetchurl { - url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86.tar.bz2"; - sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769"; + url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86.tar.bz2"; + sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769"; } else releasePath else throw "Platform is not supported by Renoise"; + buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; + installPhase = '' cp -r Resources $out @@ -52,9 +56,11 @@ stdenv.mkDerivation rec { patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise ''; - meta = { + meta = with stdenv.lib; { description = "Modern tracker-based DAW"; homepage = http://www.renoise.com/; - license = stdenv.lib.licenses.unfree; + license = licenses.unfree; + maintainers = []; + platforms = [ "i686-linux" "x86_64-linux" ]; }; } -- cgit 1.4.1 From 5da73fc3ffff3ae8519a9af906fbc84ef926bb35 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Thu, 24 May 2018 10:47:38 +0300 Subject: okteta: add version attr, clean up --- pkgs/applications/editors/okteta/default.nix | 41 ++++++++++++++++------------ 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/editors/okteta/default.nix b/pkgs/applications/editors/okteta/default.nix index 9bec148c7f29..abbffeb91807 100644 --- a/pkgs/applications/editors/okteta/default.nix +++ b/pkgs/applications/editors/okteta/default.nix @@ -1,27 +1,34 @@ -{ - mkDerivation, lib, fetchurl, - extra-cmake-modules, kdoctools, - qtscript, kconfig, kinit, karchive, kcrash, - kcmutils, kconfigwidgets, knewstuff, kparts, qca-qt5, - shared-mime-info -}: +{ stdenv, fetchurl, extra-cmake-modules, kdoctools, qtscript, kconfig +, kinit, karchive, kcrash, kcmutils, kconfigwidgets, knewstuff, kparts +, qca-qt5, shared-mime-info }: -let - version = "17.12.3"; -in mkDerivation rec { +stdenv.mkDerivation rec { name = "okteta-${version}"; + version = "17.12.3"; + src = fetchurl { - url = "mirror://kde/stable/applications/${version}/src/${name}.tar.xz"; + url = "mirror://kde/stable/applications/${version}/src/${name}.tar.xz"; sha256 = "03wsv83l1cay2dpcsksad124wzan7kh8zxdw1h0yicn398kdbck4"; }; - meta = { - license = with lib.licenses; [ gpl2 ]; - maintainers = with lib.maintainers; [ peterhoeg bkchr ]; - }; + nativeBuildInputs = [ qtscript extra-cmake-modules kdoctools ]; buildInputs = [ shared-mime-info ]; + propagatedBuildInputs = [ - kconfig kinit kcmutils kconfigwidgets knewstuff kparts qca-qt5 - karchive kcrash + kconfig + kinit + kcmutils + kconfigwidgets + knewstuff + kparts + qca-qt5 + karchive + kcrash ]; + + meta = with stdenv.lib; { + license = licenses.gpl2; + maintainers = with maintainers; [ peterhoeg bkchr ]; + platforms = platforms.linux; + }; } -- cgit 1.4.1 From 543c8c4eb08f35b70a3c787b69832f0a2535d3f9 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Thu, 24 May 2018 10:52:10 +0300 Subject: atlassian-cli: add some spaces, inherit meta.platforms from jre --- pkgs/applications/office/atlassian-cli/default.nix | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/office/atlassian-cli/default.nix b/pkgs/applications/office/atlassian-cli/default.nix index 15e3d120f20b..be31f5fd102f 100644 --- a/pkgs/applications/office/atlassian-cli/default.nix +++ b/pkgs/applications/office/atlassian-cli/default.nix @@ -1,14 +1,30 @@ { stdenv, fetchzip, jre }: + stdenv.mkDerivation rec { name = "atlassian-cli-${version}"; version = "7.8.0"; + src = fetchzip { - url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${name}-distribution.zip"; - sha256 = "111s4d9m6vxq8jwh1d6ar1f4n5zmyjg7gi2vl3aq63kxbfld9vw7"; + url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${name}-distribution.zip"; + sha256 = "111s4d9m6vxq8jwh1d6ar1f4n5zmyjg7gi2vl3aq63kxbfld9vw7"; extraPostFetch = "chmod go-w $out"; }; - tools = [ "agile" "bamboo" "bitbucket" "confluence" "csv" - "hipchat" "jira" "servicedesk" "structure" "tempo" "trello" "upm" ]; + + tools = [ + "agile" + "bamboo" + "bitbucket" + "confluence" + "csv" + "hipchat" + "jira" + "servicedesk" + "structure" + "tempo" + "trello" + "upm" + ]; + installPhase = '' mkdir -p $out/{bin,share/doc/atlassian-cli} cp -r lib $out/share/java @@ -22,10 +38,12 @@ stdenv.mkDerivation rec { chmod +x $out/bin/$tool done ''; + meta = with stdenv.lib; { description = "An integrated family of CLI’s for various Atlassian applications"; - homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview; - maintainers = [ maintainers.twey ]; - license = [ licenses.unfreeRedistributable ]; + homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview; + license = licenses.unfreeRedistributable; + maintainers = with maintainers; [ twey ]; + inherit (jre.meta) platforms; }; } -- cgit 1.4.1 From 4e049b2fd477015778817e809c0bf5544f8a1c77 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Thu, 24 May 2018 11:02:12 +0300 Subject: simgrid: cleanup --- pkgs/applications/science/misc/simgrid/default.nix | 111 ++++++++++----------- 1 file changed, 53 insertions(+), 58 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/science/misc/simgrid/default.nix b/pkgs/applications/science/misc/simgrid/default.nix index 2b25d99de2a7..522c708bf902 100644 --- a/pkgs/applications/science/misc/simgrid/default.nix +++ b/pkgs/applications/science/misc/simgrid/default.nix @@ -10,41 +10,37 @@ , moreTests ? false }: -# helpers for options -let optionals = stdenv.lib.optionals; - optionalString = stdenv.lib.optionalString; - optionOnOff = option: "${if option then "on" else "off"}"; +with stdenv.lib; + +let + optionOnOff = option: "${if option then "on" else "off"}"; + urlVersion = replaceStrings ["."] ["_"]; in stdenv.mkDerivation rec { - major_version = "3"; - minor_version = "17"; - version = "${major_version}.${minor_version}"; name = "simgrid-${version}"; + version = "3.17"; src = fetchFromGitHub { owner = "simgrid"; repo = "simgrid"; - rev = "v${major_version}_${minor_version}"; + rev = "v${urlVersion version}"; sha256 = "0ffs9w141qhw571jsa9sch1cnr332vs4sgj6dsiij2mc24m6wpb4"; - #rev = "master"; - #sha256 = "0qvh1jzc2lpnp8234kjx1x4g1a5kfdn6kb15vhk160qgvj98nyqm"; }; - nativeBuildInputs = [ cmake perl elfutils python3 boost valgrind] - ++ optionals fortranSupport [gfortran] - ++ optionals buildJavaBindings [openjdk] - ++ optionals buildDocumentation [transfig ghostscript doxygen] - ++ optionals modelCheckingSupport [libunwind libevent]; + nativeBuildInputs = [ cmake perl elfutils python3 boost valgrind ] + ++ optionals fortranSupport [ gfortran ] + ++ optionals buildJavaBindings [ openjdk ] + ++ optionals buildDocumentation [ transfig ghostscript doxygen ] + ++ optionals modelCheckingSupport [ libunwind libevent ]; #buildInputs = optional luaSupport lua5; - preConfigure = - # Make it so that libsimgrid.so will be found when running programs from - # the build dir. - '' + # Make it so that libsimgrid.so will be found when running programs from + # the build dir. + preConfigure = '' export LD_LIBRARY_PATH="$PWD/build/lib" - ''; + ''; # Release mode is not supported in SimGrid cmakeBuildType = "Debug"; @@ -59,58 +55,57 @@ stdenv.mkDerivation rec { # For more information see: # http://simgrid.gforge.inria.fr/simgrid/latest/doc/install.html#install_cmake_list cmakeFlags= '' - -Denable_documentation=${optionOnOff buildDocumentation} - -Denable_java=${optionOnOff buildJavaBindings} - -Denable_fortran=${optionOnOff fortranSupport} - -Denable_model-checking=${optionOnOff modelCheckingSupport} - -Denable_ns3=off - -Denable_lua=off - -Denable_lib_in_jar=off - -Denable_maintainer_mode=off - -Denable_mallocators=on - -Denable_debug=on - -Denable_smpi=on - -Denable_smpi_ISP_testsuite=${optionOnOff moreTests} - -Denable_smpi_MPICH3_testsuite=${optionOnOff moreTests} - -Denable_compile_warnings=${optionOnOff debug} - -Denable_compile_optimizations=${optionOnOff (!debug)} - -Denable_lto=${optionOnOff (!debug)} - ''; - #-Denable_lua=${optionOnOff luaSupport} - #-Denable_smpi_papi=${optionOnOff moreTests} + -Denable_documentation=${optionOnOff buildDocumentation} + -Denable_java=${optionOnOff buildJavaBindings} + -Denable_fortran=${optionOnOff fortranSupport} + -Denable_model-checking=${optionOnOff modelCheckingSupport} + -Denable_ns3=off + -Denable_lua=off + -Denable_lib_in_jar=off + -Denable_maintainer_mode=off + -Denable_mallocators=on + -Denable_debug=on + -Denable_smpi=on + -Denable_smpi_ISP_testsuite=${optionOnOff moreTests} + -Denable_smpi_MPICH3_testsuite=${optionOnOff moreTests} + -Denable_compile_warnings=${optionOnOff debug} + -Denable_compile_optimizations=${optionOnOff (!debug)} + -Denable_lto=${optionOnOff (!debug)} + ''; + # -Denable_lua=${optionOnOff luaSupport} + # -Denable_smpi_papi=${optionOnOff moreTests} makeFlags = optionalString debug "VERBOSE=1"; - preBuild = - '' - # Some perl scripts are called to generate test during build which - # is before the fixupPhase of nix, so do this manualy here: - patchShebangs .. - ''; + # Some Perl scripts are called to generate test during build which + # is before the fixupPhase, so do this manualy here: + preBuild = '' + patchShebangs .. + ''; doCheck = true; + checkPhase = '' runHook preCheck - ctest --output-on-failure -E smpi-replay-multiple - runHook postCheck - ''; + ''; + enableParallelBuilding = true; - meta = with stdenv.lib; { + meta = { description = "Framework for the simulation of distributed applications"; - longDescription = - '' SimGrid is a toolkit that provides core functionalities for the - simulation of distributed applications in heterogeneous distributed - environments. The specific goal of the project is to facilitate - research in the area of distributed and parallel application - scheduling on distributed computing platforms ranging from simple - network of workstations to Computational Grids. - ''; + longDescription = '' + SimGrid is a toolkit that provides core functionalities for the + simulation of distributed applications in heterogeneous distributed + environments. The specific goal of the project is to facilitate + research in the area of distributed and parallel application + scheduling on distributed computing platforms ranging from simple + network of workstations to Computational Grids. + ''; homepage = http://simgrid.gforge.inria.fr/; + license = licenses.lgpl2Plus; maintainers = with maintainers; [ mickours ]; platforms = platforms.x86_64; - license = licenses.lgpl2Plus; }; } -- cgit 1.4.1 From f2daf23137d1def839882691b7daf6738cfa9e58 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Thu, 24 May 2018 11:04:17 +0300 Subject: renoise: srcVersion -> urlVersion --- pkgs/applications/audio/renoise/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index 7cd695eb11da..5ec7375056ec 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }: +{ stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }: + +with stdenv.lib; # To use the full release version: # 1) Sign into https://backstage.renoise.com and download the appropriate (x86 or x86_64) version @@ -7,7 +9,7 @@ # Note: Renoise creates an individual build for each license which screws somewhat with the # use of functions like requireFile as the hash will be different for every user. let - srcVersion = version: lib.replaceStrings ["."] ["_"] version; + urlVersion = replaceStrings [ "." ] [ "_" ]; in stdenv.mkDerivation rec { @@ -18,15 +20,15 @@ stdenv.mkDerivation rec { if stdenv.system == "x86_64-linux" then if builtins.isNull releasePath then fetchurl { - url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86_64.tar.bz2"; - sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga"; + url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86_64.tar.bz2"; + sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga"; } else releasePath else if stdenv.system == "i686-linux" then if builtins.isNull releasePath then fetchurl { - url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86.tar.bz2"; + url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86.tar.bz2"; sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769"; } else @@ -56,7 +58,7 @@ stdenv.mkDerivation rec { patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise ''; - meta = with stdenv.lib; { + meta = { description = "Modern tracker-based DAW"; homepage = http://www.renoise.com/; license = licenses.unfree; -- cgit 1.4.1 From a0f4d19925705945b2beb393239f1a9f72b5035d Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 25 May 2018 04:21:47 -0500 Subject: treewide: use appendToName where appropriate Using appendToName preserves the version at the end of the name. --- pkgs/applications/networking/cluster/terraform/default.nix | 6 +++--- pkgs/development/idris-modules/with-packages.nix | 6 +++--- pkgs/misc/lilypond/with-fonts.nix | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index 5879c0e83974..ad8bae014542 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -60,8 +60,8 @@ let # of plugins, which might be counterintuitive if someone just wants a vanilla Terraform. if actualPlugins == [] then terraform.overrideAttrs (orig: { passthru = orig.passthru // passthru; }) - else stdenv.mkDerivation { - name = "${terraform.name}-with-plugins"; + else lib.appendToName "with-plugins "(stdenv.mkDerivation { + inherit (terraform) name; buildInputs = [ makeWrapper ]; buildCommand = '' @@ -72,7 +72,7 @@ let ''; inherit passthru; - }; + }); in withPlugins (_: []); plugins = import ./providers { inherit stdenv lib buildGoPackage fetchFromGitHub; }; diff --git a/pkgs/development/idris-modules/with-packages.nix b/pkgs/development/idris-modules/with-packages.nix index 1631555eee4a..8b390d4bf5be 100644 --- a/pkgs/development/idris-modules/with-packages.nix +++ b/pkgs/development/idris-modules/with-packages.nix @@ -4,9 +4,9 @@ let paths = stdenv.lib.closePropagation packages; in -symlinkJoin { +stdenv.lib.appendToName "with-packages" (symlinkJoin { - name = idris.name + "-with-packages"; + inherit (idris) name; paths = paths ++ [idris] ; @@ -17,4 +17,4 @@ symlinkJoin { --set IDRIS_LIBRARY_PATH $out/libs ''; -} +}) diff --git a/pkgs/misc/lilypond/with-fonts.nix b/pkgs/misc/lilypond/with-fonts.nix index 2218b75a2e0f..5bc74cb65ddf 100644 --- a/pkgs/misc/lilypond/with-fonts.nix +++ b/pkgs/misc/lilypond/with-fonts.nix @@ -5,8 +5,8 @@ , fonts ? openlilylib-fonts.all }: -stdenv.mkDerivation { - name = "${lilypond.name}-with-fonts"; +stdenv.lib.appendToName "with-fonts" (stdenv.mkDerivation { + inherit (lilypond) name; phases = "installPhase"; buildInputs = fonts; nativeBuildInputs = [ lndir ]; @@ -32,4 +32,4 @@ stdenv.mkDerivation { substituteInPlace $p --replace "exec -a \"${lilypond}" "exec -a \"$out" done ''; -} +}) -- cgit 1.4.1 From ee8fa757f36b80a34fa97f8ee686f92abe742cf1 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 25 May 2018 04:22:19 -0500 Subject: gimp: cleanup plugin name All gimp plugins are now prefixed with "gimp-plugin-" to make them more clear. --- pkgs/applications/graphics/gimp/plugins/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix index 5b21b349764b..0c753498af34 100644 --- a/pkgs/applications/graphics/gimp/plugins/default.nix +++ b/pkgs/applications/graphics/gimp/plugins/default.nix @@ -22,9 +22,8 @@ let ''; } // a - # don't call this gimp-* unless you want nix replace gimp by a plugin :-) // { - name = "${a.name}-${gimp.name}-plugin"; + name = "gimp-plugin-${a.name}"; buildInputs = [ gimp gimp.gtk glib ] ++ (a.buildInputs or []); nativeBuildInputs = [ pkgconfig intltool ] ++ (a.nativeBuildInputs or []); } -- cgit 1.4.1