diff options
author | Quantenzitrone | 2023-12-14 21:14:12 +0100 |
---|---|---|
committer | Emery Hemingway | 2023-12-17 09:30:31 +0000 |
commit | 6bed76a2a9316c288e4ac468c2ff90e5ebcc43b8 (patch) | |
tree | 800bcfe87fae402d3d021efdfc4342d33dee9167 | |
parent | 83267ae441a5698afa0622d9e04cf45cf3582bb6 (diff) |
sway: set version and pname attribute
-rw-r--r-- | pkgs/by-name/sw/sway/package.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/by-name/sw/sway/package.nix b/pkgs/by-name/sw/sway/package.nix index 7510e1e9582b..3e9ed51613f8 100644 --- a/pkgs/by-name/sw/sway/package.nix +++ b/pkgs/by-name/sw/sway/package.nix @@ -31,8 +31,10 @@ let exec ${lib.optionalString dbusSupport "${dbus}/bin/dbus-run-session"} ${lib.getExe sway} "$@" fi ''; -in symlinkJoin { - name = "${sway.meta.mainProgram}-${sway.version}"; +in symlinkJoin rec { + pname = lib.replaceStrings ["-unwrapped"] [""] sway.pname; + inherit (sway) version; + name = "${pname}-${version}"; paths = (optional withBaseWrapper baseWrapper) ++ [ sway ]; |