diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2022-03-16 14:47:04 +0100 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2022-03-16 14:47:04 +0100 |
commit | de62c2c1f498c62b502c97c99e85aa285446ed52 (patch) | |
tree | 5b5a17e74bec27c3ec7c2a95af2acd817fe113d0 | |
parent | e517a35b9e5f309b63e26392de87ff1ebf7dcebc (diff) | |
download | nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar.gz nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar.bz2 nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar.lz nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar.xz nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.tar.zst nixpkgs-de62c2c1f498c62b502c97c99e85aa285446ed52.zip |
furnace: 0.5.6 -> 0.5.8
-rw-r--r-- | pkgs/applications/audio/furnace/default.nix | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/applications/audio/furnace/default.nix b/pkgs/applications/audio/furnace/default.nix index e7794175ac9..841a65e541f 100644 --- a/pkgs/applications/audio/furnace/default.nix +++ b/pkgs/applications/audio/furnace/default.nix @@ -1,8 +1,9 @@ { stdenv , lib -, nix-update-script +, gitUpdater +, testVersion +, furnace , fetchFromGitHub -, fetchpatch , cmake , pkg-config , makeWrapper @@ -18,24 +19,16 @@ stdenv.mkDerivation rec { pname = "furnace"; - version = "0.5.6"; + version = "0.5.8"; src = fetchFromGitHub { owner = "tildearrow"; repo = "furnace"; rev = "v${version}"; fetchSubmodules = true; - sha256 = "sha256-BcaPQuDFkAaxFQKwoI6xdSWcyHo5VsqZcwf++JISqRs="; + sha256 = "103ymd3wa1sfsr6qg15vpcs53j350i7zidv3azlf7cynk6k28xim"; }; - patches = [ - (fetchpatch { - name = "0001-furnace-fix-wrong-include-path.patch"; - url = "https://github.com/tildearrow/furnace/commit/456db22f9d9f0ed40d74fe50dde492e69e901fcc.patch"; - sha256 = "17ikb1z9ldm7kdj00m4swsrq1qx94vlzhc6h020x3ryzwnglc8d3"; - }) - ]; - postPatch = '' # rtmidi is not used yet sed -i -e '/add_subdirectory(extern\/rtmidi/d' -e '/DEPENDENCIES_LIBRARIES rtmidi/d' CMakeLists.txt @@ -85,8 +78,16 @@ stdenv.mkDerivation rec { cp -r ../demos $out/share/furnace/ ''; - passthru.updateScript = nix-update-script { - attrPath = pname; + passthru = { + updateScript = gitUpdater { + inherit pname version; + rev-prefix = "v"; + }; + tests.version = testVersion { + package = furnace; + # The command always exits with code 1 + command = "(furnace --version || [ $? -eq 1 ])"; + }; }; meta = with lib; { |