unxwb: init at 0.3.6

test
Simon Bruder 2021-05-14 18:34:11 +02:00
parent c74c196152
commit c58908483f
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 42 additions and 0 deletions

View File

@ -30,6 +30,8 @@
textidote = callPackage ./textidote { };
unxwb = callPackage ./unxwb { };
VisiCut = callPackage ./VisiCut { };
};
} // flake-utils.lib.eachDefaultSystem (system:
@ -58,6 +60,7 @@
cyanrip
deemix
textidote
unxwb
VisiCut;
};

39
unxwb/default.nix Normal file
View File

@ -0,0 +1,39 @@
{ lib, stdenv, fetchzip, zlib }:
stdenv.mkDerivation rec {
pname = "unxwb";
version = "0.3.6";
src = fetchzip {
# upstream URL (https://aluigi.altervista.org/papers/unxwb.zip) is not stable
url = "https://web.archive.org/web/20210401211235if_/http://aluigi.altervista.org/papers/unxwb.zip";
sha256 = "1i7m7dacfnjs22d0vk49ljmszxcvrqfr6x9brpp0qfggvqdfaw55";
stripRoot = false;
};
buildInputs = [ zlib ];
buildPhase = ''
runHook preBuild
gcc -lz -I. -O3 -o ${pname} ${pname}.c
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D ${pname} $out/bin/${pname}
runHook postInstall
'';
meta = with lib; {
description = "A tool for extracting the data contained in XWB archives";
homepage = "https://aluigi.altervista.org/papers.htm";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}