mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 14:07:42 +00:00
nix: cleanup; add homepage
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644205647b67cb5b8f15ae97db513d51e7
This commit is contained in:
parent
da8f01b286
commit
8423dffdfe
1 changed files with 9 additions and 6 deletions
|
|
@ -2,8 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
craneLib,
|
craneLib,
|
||||||
}: let
|
}: let
|
||||||
inherit (craneLib) buildDepsOnly buildPackage;
|
|
||||||
|
|
||||||
pname = "stash";
|
pname = "stash";
|
||||||
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
|
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).package.version;
|
||||||
src = let
|
src = let
|
||||||
|
|
@ -19,15 +17,19 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoArtifacts = buildDepsOnly {
|
cargoArtifacts = craneLib.buildDepsOnly {
|
||||||
name = "${pname}-deps";
|
name = "${pname}-deps";
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
inherit src;
|
inherit src;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
buildPackage {
|
craneLib.buildPackage {
|
||||||
inherit cargoArtifacts pname src version;
|
inherit pname src version cargoArtifacts;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
|
# Install Systemd service for Stash into $out/share.
|
||||||
|
# This can be used to use Stash in 'systemd.packages'
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
install -Dm755 ${../vendor/stash.service} $out/share/stash.service
|
install -Dm755 ${../vendor/stash.service} $out/share/stash.service
|
||||||
|
|
@ -35,8 +37,9 @@ in
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Wayland clipboard manager with fast persistent history and multi-media support";
|
description = "Wayland clipboard manager with fast persistent history and multi-media support";
|
||||||
maintainers = [lib.maintainers.NotAShelf];
|
homepage = "https://github.com/notashelf/stash";
|
||||||
license = lib.licenses.mpl20;
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = [lib.maintainers.NotAShelf];
|
||||||
mainProgram = "stash";
|
mainProgram = "stash";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue