77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
libcosmicAppHook,
|
|
pkg-config,
|
|
libinput,
|
|
libgbm,
|
|
udev,
|
|
nix-update-script,
|
|
nixosTests,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "cosmic-workspaces-epoch";
|
|
version = "1.0.0-alpha.7";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitHub {
|
|
owner = "pop-os";
|
|
repo = "cosmic-workspaces-epoch";
|
|
tag = "epoch-${finalAttrs.version}";
|
|
hash = "sha256-d7KYZbq8O/t5V/gU+wwstp06vyfnmt6vRKo+54Dct+o=";
|
|
};
|
|
|
|
cargoHash = "sha256-TjgnPuFUIDtxx9kpvN9hKiir3/ZVtCc0z1CE4UHre1Q=";
|
|
|
|
separateDebugInfo = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
libcosmicAppHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libinput
|
|
libgbm
|
|
udev
|
|
];
|
|
|
|
dontCargoInstall = true;
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
"CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
|
|
];
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit (nixosTests)
|
|
cosmic
|
|
cosmic-autologin
|
|
cosmic-noxwayland
|
|
cosmic-autologin-noxwayland
|
|
;
|
|
};
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"unstable"
|
|
"--version-regex"
|
|
"epoch-(.*)"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/pop-os/cosmic-workspaces-epoch";
|
|
description = "Workspaces Epoch for the COSMIC Desktop Environment";
|
|
mainProgram = "cosmic-workspaces";
|
|
license = lib.licenses.gpl3Only;
|
|
teams = [ lib.teams.cosmic ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|