Merge pull request #113352 from figsoda/xtrt

xtrt: init at 61884fb
This commit is contained in:
Sandro 2021-02-18 12:33:16 +01:00 committed by GitHub
commit 8eedaa9699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ bzip2, fetchFromGitHub, gzip, gnutar, lib, stdenv, unzip, xz }:
stdenv.mkDerivation rec {
pname = "xtrt";
version = "unstable-2021-02-17";
src = fetchFromGitHub {
owner = "figsoda";
repo = pname;
rev = "61884fb7c48c7e1e2194afd82b85f415a6dc7c20";
sha256 = "073l4q6mx5if791p5a6w8m8bz2aypmjmycaijq4spql8bh6h12vf";
};
postPatch = ''
substituteInPlace xtrt \
--replace "bzip2 " "${bzip2}/bin/bzip2 " \
--replace "gzip " "${gzip}/bin/gzip " \
--replace "tar " "${gnutar}/bin/tar " \
--replace "unzip " "${unzip}/bin/unzip " \
--replace "xz " "${xz}/bin/xz "
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp xtrt $out/bin
runHook postInstall
'';
meta = with lib; {
description = "Tiny script to extract archives by their extensions";
homepage = "https://github.com/figsoda/xtrt";
license = licenses.unlicense;
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -748,6 +748,8 @@ in
metapixel = callPackage ../tools/graphics/metapixel { };
xtrt = callPackage ../tools/archivers/xtrt { };
yabridge = callPackage ../tools/audio/yabridge {
wine = wineWowPackages.minimal;
};