Files
nixpkgs/pkgs/by-name/ci/ciel/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.4 KiB
Nix

{
lib,
bash,
dbus,
fetchFromGitHub,
installShellFiles,
libgit2,
libssh2,
openssl,
pkg-config,
rustPlatform,
systemd,
xz,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "ciel";
version = "3.9.10";
src = fetchFromGitHub {
owner = "AOSC-Dev";
repo = "ciel-rs";
tag = "v${version}";
hash = "sha256-WpP3rwiGXA5oeBZ3wQwSXPmRT5+zUOm2d1HTEdvnHFc=";
};
cargoHash = "sha256-zby+QrzX7M714y50j2ZyfXYRhWeAwZbbHZF8KsjS/Hc=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
# ciel has plugins which is actually bash scripts.
# Therefore, bash is required for plugins to work.
buildInputs = [
bash
systemd
dbus
openssl
libssh2
libgit2
xz
zlib
];
postInstall = ''
mv -v "$out/bin/ciel-rs" "$out/bin/ciel"
# From install-assets.sh
install -Dm555 -t "$out/libexec/ciel-plugin" plugins/*
# Install completions
installShellCompletion --cmd ciel \
--bash completions/ciel.bash \
--fish completions/ciel.fish \
--zsh completions/_ciel
'';
meta = with lib; {
description = "Tool for controlling AOSC OS packaging environments using multi-layer filesystems and containers";
homepage = "https://github.com/AOSC-Dev/ciel-rs";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [
A1ca7raz
yisuidenghua
];
mainProgram = "ciel";
};
}