about summary refs log tree commit diff
path: root/pkgs/by-name/in/incus/package.nix
diff options
context:
space:
mode:
authorAdam Stephens <adam@valkor.net>2024-02-02 22:12:15 -0500
committerAdam Stephens <adam@valkor.net>2024-02-02 22:13:03 -0500
commit273b448b6a3fe0961b939bea8f2c4e202e489448 (patch)
tree781b7fc118ef78f1e87dd90111339122ee1cd5d5 /pkgs/by-name/in/incus/package.nix
parent5f087b3221142436513d2941392d09d5e8a922c5 (diff)
downloadnixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar.gz
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar.bz2
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar.lz
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar.xz
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.tar.zst
nixlib-273b448b6a3fe0961b939bea8f2c4e202e489448.zip
incus: fix update script
Working with the wrapper causes pain, so to update target
incus.unwrapped, or in the future incus-lts.unwrapped
Diffstat (limited to 'pkgs/by-name/in/incus/package.nix')
-rw-r--r--pkgs/by-name/in/incus/package.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/by-name/in/incus/package.nix b/pkgs/by-name/in/incus/package.nix
index c91d08c2f5a5..8a10f6eef7fd 100644
--- a/pkgs/by-name/in/incus/package.nix
+++ b/pkgs/by-name/in/incus/package.nix
@@ -42,6 +42,7 @@
 let
   unwrapped = callPackage ./unwrapped.nix { inherit lts; };
   client = callPackage ./client.nix { inherit lts; };
+  name = "incus${lib.optionalString lts "-lts"}";
 
   binPath = lib.makeBinPath [
     acl
@@ -150,7 +151,7 @@ let
   ];
 in
 symlinkJoin {
-  name = "incus-${unwrapped.version}";
+  name = "${name}-${unwrapped.version}";
 
   paths = [ unwrapped ];
 
@@ -163,11 +164,9 @@ symlinkJoin {
   '';
 
   passthru = {
-    inherit (unwrapped) tests;
-
-    client = client;
+    inherit client unwrapped;
 
-    unwrapped = unwrapped;
+    inherit (unwrapped) tests;
   };
 
   inherit (unwrapped) meta pname version;