summary refs log tree commit diff
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-09-02 22:14:47 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-09-02 22:14:47 +0200
commit22de9d970e13a98bde6474af3ac0e5bfb2ee2bff (patch)
tree716431aacadf4ece89530d1ade506958efce7e7d
parent4474bdc5403066213191d1c1d58dc4642ccc0e49 (diff)
downloadnixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar.gz
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar.bz2
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar.lz
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar.xz
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.tar.zst
nixpkgs-22de9d970e13a98bde6474af3ac0e5bfb2ee2bff.zip
bindfs: use `finalAttrs` pattern
-rw-r--r--pkgs/tools/filesystems/bindfs/default.nix30
1 files changed, 20 insertions, 10 deletions
diff --git a/pkgs/tools/filesystems/bindfs/default.nix b/pkgs/tools/filesystems/bindfs/default.nix
index 3e0370b99ad..dfcf6aba9e0 100644
--- a/pkgs/tools/filesystems/bindfs/default.nix
+++ b/pkgs/tools/filesystems/bindfs/default.nix
@@ -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;
   };
-}
+})