mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
cosmic-initial-setup: init at 1.0.0-beta.1.1
This commit is contained in:
parent
a7ddabfacc
commit
a3b4bdbb84
3 changed files with 240 additions and 0 deletions
102
pkgs/by-name/co/cosmic-initial-setup/package.nix
Normal file
102
pkgs/by-name/co/cosmic-initial-setup/package.nix
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
just,
|
||||
libcosmicAppHook,
|
||||
libinput,
|
||||
openssl,
|
||||
udev,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "cosmic-initial-setup";
|
||||
version = "1.0.0-beta.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pop-os";
|
||||
repo = "cosmic-initial-setup";
|
||||
tag = "epoch-${finalAttrs.version}";
|
||||
hash = "sha256-kjJqGNcIlnzEsfA4eQ9D23ZGgRcmWQyWheAlwpjfALA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-orwK9gcFXK4/+sfwRubcz0PP6YAFqsENRHnlSLttLxM=";
|
||||
|
||||
# cargo-auditable fails during the build when compiling the `crabtime::function`
|
||||
# procedural macro. It panics because the `--out-dir` flag is not passed to
|
||||
# the rustc wrapper.
|
||||
#
|
||||
# Reported this issue upstream in:
|
||||
# https://github.com/rust-secure-code/cargo-auditable/issues/225
|
||||
auditable = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
libcosmicAppHook
|
||||
just
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libinput
|
||||
openssl
|
||||
udev
|
||||
];
|
||||
|
||||
# These are not needed for NixOS
|
||||
patches = [
|
||||
./disable-language-page.patch
|
||||
./disable-timezone-page.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Installs in $out/etc/xdg/autostart instead of /etc/xdg/autostart
|
||||
substituteInPlace justfile \
|
||||
--replace-fail \
|
||||
"autostart-dst := rootdir / 'etc' / 'xdg' / 'autostart' / desktop-entry" \
|
||||
"autostart-dst := prefix / 'etc' / 'xdg' / 'autostart' / desktop-entry"
|
||||
'';
|
||||
|
||||
dontUseJustBuild = true;
|
||||
dontUseJustCheck = true;
|
||||
|
||||
justFlags = [
|
||||
"--set"
|
||||
"prefix"
|
||||
(placeholder "out")
|
||||
"--set"
|
||||
"cargo-target-dir"
|
||||
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
|
||||
];
|
||||
|
||||
env.DISABLE_IF_EXISTS = "/iso/nix-store.squashfs";
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
inherit (nixosTests)
|
||||
cosmic
|
||||
cosmic-autologin
|
||||
cosmic-noxwayland
|
||||
cosmic-autologin-noxwayland
|
||||
;
|
||||
};
|
||||
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version"
|
||||
"unstable"
|
||||
"--version-regex"
|
||||
"epoch-(.*)"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "COSMIC Initial Setup";
|
||||
homepage = "https://github.com/pop-os/cosmic-initial-setup";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "cosmic-initial-setup";
|
||||
platforms = lib.platforms.linux;
|
||||
teams = [ lib.teams.cosmic ];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue