mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
archivemount: 0.9.1 -> 1 (#344990)
This commit is contained in:
commit
6125359681
59
pkgs/by-name/ar/archivemount/package.nix
Normal file
59
pkgs/by-name/ar/archivemount/package.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromSourcehut,
|
||||
fetchpatch,
|
||||
pkg-config,
|
||||
fuse,
|
||||
libarchive,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "archivemount";
|
||||
version = "1";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~nabijaczleweli";
|
||||
repo = "archivemount-ng";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-xuLtbqC9iS86BKz4jG8of4id+GTlBXoohONrkmIzOpY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
fuse
|
||||
libarchive
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"VERSION=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
# Fix missing standard struct stat on Darwin
|
||||
# Already on upstream, but no new release made
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-missing-standard-struct-stat-on-darwin.patch";
|
||||
url = "https://git.sr.ht/~nabijaczleweli/archivemount-ng/commit/53dd70f05fdb6ababe7c1ca70f0f62bcf4930b5a.patch";
|
||||
hash = "sha256-UqoALAJoNXihop6Mem4mu+W8REOV92Zyv7pPW20Ugz8=";
|
||||
})
|
||||
];
|
||||
|
||||
# Fix cross-compilation
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace-fail pkg-config "$PKG_CONFIG"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Gateway between FUSE and libarchive: allows mounting of cpio, .tar.gz, .tar.bz2 archives";
|
||||
mainProgram = "archivemount";
|
||||
license = [
|
||||
lib.licenses.lgpl2Plus
|
||||
lib.licenses.bsd0
|
||||
];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
@ -1,21 +0,0 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, fuse, libarchive }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "archivemount";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.cybernoia.de/software/archivemount/archivemount-${version}.tar.gz";
|
||||
sha256 = "1cy5b6qril9c3ry6fv7ir87s8iyy5vxxmbyx90dm86fbra0vjaf5";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ fuse libarchive ];
|
||||
|
||||
meta = {
|
||||
description = "Gateway between FUSE and libarchive: allows mounting of cpio, .tar.gz, .tar.bz2 archives";
|
||||
mainProgram = "archivemount";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -3035,8 +3035,6 @@ with pkgs;
|
||||
|
||||
archivebox = callPackage ../applications/misc/archivebox { };
|
||||
|
||||
archivemount = callPackage ../tools/filesystems/archivemount { };
|
||||
|
||||
archivy = callPackage ../applications/misc/archivy { };
|
||||
|
||||
arandr = callPackage ../tools/X11/arandr { };
|
||||
|
Loading…
Reference in New Issue
Block a user