bindfs: use finalAttrs pattern
This commit is contained in:
@@ -1,26 +1,36 @@
|
||||
{ lib, stdenv, fetchurl, fuse, fuse3, pkg-config }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, fuse
|
||||
, fuse3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
version = "1.17.4";
|
||||
pname = "bindfs";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bindfs.org/downloads/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-b9Svm6LsK9tgPvjuoqnRLbLl/py+UrhkC0FXNKWfPcw=";
|
||||
url = "https://bindfs.org/downloads/bindfs-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-b9Svm6LsK9tgPvjuoqnRLbLl/py+UrhkC0FXNKWfPcw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ];
|
||||
|
||||
postFixup = ''
|
||||
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/mpartel/bindfs/raw/${finalAttrs.version}/ChangeLog";
|
||||
description = "A FUSE filesystem for mounting a directory to another location";
|
||||
homepage = "https://bindfs.org";
|
||||
changelog = "https://github.com/mpartel/bindfs/raw/${version}/ChangeLog";
|
||||
license = lib.licenses.gpl2Only;
|
||||
homepage = "https://bindfs.org";
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ lovek323 lovesegfault ];
|
||||
platforms = lib.platforms.unix;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user