mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-17 08:09:52 +00:00
nix: clean up packaging
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69643e155d95fbed1d10900bbe4d7ff03b15
This commit is contained in:
parent
18fc1c768e
commit
478c020579
2 changed files with 11 additions and 6 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
}: let
|
}: let
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
|
|
||||||
pkgsForEach = nixpkgs.legacyPackages;
|
pkgsForEach = nixpkgs.legacyPackages;
|
||||||
in {
|
in {
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "sample-rust";
|
pname = "stash";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
src = let
|
src = let
|
||||||
|
|
@ -13,18 +13,24 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
fs.toSource {
|
fs.toSource {
|
||||||
root = s;
|
root = s;
|
||||||
fileset = fs.unions [
|
fileset = fs.unions [
|
||||||
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) s + /src)
|
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /src))
|
||||||
(s + /Cargo.lock)
|
(s + /Cargo.lock)
|
||||||
(s + /Cargo.toml)
|
(s + /Cargo.toml)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
||||||
useFetchCargoVendor = true;
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out
|
||||||
|
install -Dm755 ${../vendor/stash.service} $out/share/stash.service
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Experimental nftables ruleset formatter and prettier";
|
description = "Wayland clipboard manager with fast persistent history and multi-media support";
|
||||||
maintainers = with lib.licenses; [NotAShelf];
|
maintainers = [lib.maintainers.NotAShelf];
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
mainProgram = "stash";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue