Merge pull request #164434 from OPNA2608/update/furnace

furnace: 0.5.6 -> 0.5.8
This commit is contained in:
Bobby Rong 2022-03-21 11:39:27 +08:00 committed by GitHub
commit bb17fb8040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
{ stdenv { stdenv
, lib , lib
, nix-update-script , gitUpdater
, testVersion
, furnace
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, pkg-config , pkg-config
, makeWrapper , makeWrapper
@ -18,24 +19,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "furnace"; pname = "furnace";
version = "0.5.6"; version = "0.5.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tildearrow"; owner = "tildearrow";
repo = "furnace"; repo = "furnace";
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; 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 = '' postPatch = ''
# rtmidi is not used yet # rtmidi is not used yet
sed -i -e '/add_subdirectory(extern\/rtmidi/d' -e '/DEPENDENCIES_LIBRARIES rtmidi/d' CMakeLists.txt 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/ cp -r ../demos $out/share/furnace/
''; '';
passthru.updateScript = nix-update-script { passthru = {
attrPath = pname; 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; { meta = with lib; {