Commit d8816d3a authored by Lin Xianyi's avatar Lin Xianyi
Browse files
parent 7b38f24f
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
  lz4,
  libxkbcommon,
  installShellFiles,
  makeWrapper,
  procps,
  scdoc,
  wayland-protocols,
  wayland-scanner,
@@ -13,16 +15,16 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "swww";
  version = "0.10.3";
  version = "0.11.2";

  src = fetchFromGitHub {
    owner = "LGFae";
    repo = "swww";
    tag = "v${finalAttrs.version}";
    hash = "sha256-GXqXZn29r7ktL01KBzlPZ+9b1fdnAPF8qhsQxhiqAsQ=";
    hash = "sha256-X2ptpXRo6ps5RxDe5RS7qfTaHWqBbBNw/aSdC2tzUG8=";
  };

  cargoHash = "sha256-jCjeHeHML8gHtvFcnHbiGL5fZ3LhABhXrcUTQriUDc0=";
  cargoHash = "sha256-5KZWsdo37NbFFkK8XFc0XI9iwBkpV8KsOaOc0y287Io=";

  buildInputs = [
    lz4
@@ -36,6 +38,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
  nativeBuildInputs = [
    pkg-config
    installShellFiles
    makeWrapper
    scdoc
  ];

@@ -52,6 +55,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
      --zsh completions/_swww
  '';

  postFixup = ''
    for program in $out/bin/*; do
      wrapProgram $program \
        --prefix PATH : "${lib.makeBinPath [ procps ]}"
    done
  '';

  meta = {
    description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
    homepage = "https://github.com/LGFae/swww";