diff options
author | nikstur <nikstur@outlook.com> | 2024-02-02 16:40:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 16:40:47 +0100 |
commit | bba94bbc26860161c9253457353ca676c222ca74 (patch) | |
tree | 94219e71f77c877843e0c0e8d35546fe3aea9928 | |
parent | 6908b2c353ae84f00785934cc24c38e2195d5a05 (diff) | |
parent | 25041c54e20a7a04f0b9d157149196e2fb27aa04 (diff) | |
download | nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar.gz nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar.bz2 nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar.lz nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar.xz nixlib-bba94bbc26860161c9253457353ca676c222ca74.tar.zst nixlib-bba94bbc26860161c9253457353ca676c222ca74.zip |
Merge pull request #268559 from mrcjkb/tuxedo-rs
tuxedo-rs: 0.2.3 -> 0.3.0
-rw-r--r-- | pkgs/os-specific/linux/tailor-gui/default.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/tuxedo-rs/default.nix | 28 |
2 files changed, 18 insertions, 14 deletions
diff --git a/pkgs/os-specific/linux/tailor-gui/default.nix b/pkgs/os-specific/linux/tailor-gui/default.nix index ecbec75fd82d..d8aace99e4ef 100644 --- a/pkgs/os-specific/linux/tailor-gui/default.nix +++ b/pkgs/os-specific/linux/tailor-gui/default.nix @@ -17,7 +17,7 @@ let src = tuxedo-rs.src; sourceRoot = "source/tailor_gui"; pname = "tailor_gui"; - version = tuxedo-rs.version; + version = "0.2.3"; in stdenv.mkDerivation { @@ -54,7 +54,7 @@ stdenv.mkDerivation { ''; homepage = "https://github.com/AaronErhardt/tuxedo-rs"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ mrcjkb ]; + maintainers = with maintainers; [ mrcjkb xaverdh ]; platforms = platforms.linux; }; } diff --git a/pkgs/os-specific/linux/tuxedo-rs/default.nix b/pkgs/os-specific/linux/tuxedo-rs/default.nix index 04c1518aab83..ca48571b7933 100644 --- a/pkgs/os-specific/linux/tuxedo-rs/default.nix +++ b/pkgs/os-specific/linux/tuxedo-rs/default.nix @@ -1,29 +1,33 @@ { lib , fetchFromGitHub , rustPlatform +, testers +, tuxedo-rs }: -let +rustPlatform.buildRustPackage rec { + pname = "tuxedo-rs"; + version = "0.3.0"; # NOTE: This src is shared with tailor-gui. # When updating, the tailor-gui.cargoDeps hash needs to be updated. src = fetchFromGitHub { owner = "AaronErhardt"; repo = "tuxedo-rs"; - rev = "74b863e6dcb1ec2e6c8fb02c16bb6f23b59e67f6"; - hash = "sha256-Yujki2vGzaT8Ze5Usk8FPg8bn86MvyyPTiWuWwEw7Xs="; + rev = "tailor-v${version}"; + hash = "sha256-5F9Xo+tnmYqmFiKrKMe+EEqypmG9iIvwai5yuKCm00Y="; }; -in -rustPlatform.buildRustPackage { - pname = "tuxedo-rs"; - version = "0.2.3"; - - inherit src; # Some of the tests are impure and rely on files in /etc/tailord doCheck = false; - cargoHash = "sha256-uYt442u/BIzw/lBu18LrsJf5D46oUOFzBJ5pUjCpK6w="; + cargoHash = "sha256-EPbh1elLOJKOrYLeBSaZ27zWGYFajiD60eFGEGaCJKw="; + + passthru.tests.version = testers.testVersion { + package = tuxedo-rs; + command = "${meta.mainProgram} --version"; + version = version; + }; postInstall = '' install -Dm444 tailord/com.tux.Tailor.conf -t $out/share/dbus-1/system.d @@ -40,8 +44,8 @@ rustPlatform.buildRustPackage { ''; homepage = "https://github.com/AaronErhardt/tuxedo-rs"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ mrcjkb ]; + maintainers = with maintainers; [ mrcjkb xaverdh ]; platforms = platforms.linux; + mainProgram = "tailor"; }; } - |