nixpkgs/pkgs/by-name/ci/ciel/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.4 KiB
Nix
Raw Normal View History

2023-03-07 16:12:29 +00:00
{ lib
, bash
, dbus
, fetchFromGitHub
, installShellFiles
, libgit2
, libssh2
, openssl
, pkg-config
, rustPlatform
, systemd
, xz
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "ciel";
2024-07-30 15:56:46 +00:00
version = "3.3.0";
2023-03-07 16:12:29 +00:00
src = fetchFromGitHub {
owner = "AOSC-Dev";
repo = "ciel-rs";
rev = "refs/tags/v${version}";
2024-07-30 15:56:46 +00:00
hash = "sha256-vV1qZLVVVc6KFZrpF4blKmbfQjf/Ltn+IhmM5Zqb2zU=";
2023-03-07 16:12:29 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-07-19 02:55:06 +00:00
"libmount-0.1.15" = "sha256-JObYz6AUWhvz8q+9DdsbMWm7zNQmMW73WAt+LjY5TV0=";
};
};
2023-03-07 16:12:29 +00:00
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";
2023-03-07 16:12:29 +00:00
homepage = "https://github.com/AOSC-Dev/ciel-rs";
license = licenses.mit;
platforms = platforms.linux;
2024-07-19 02:57:06 +00:00
maintainers = with maintainers; [ A1ca7raz yisuidenghua ];
2023-11-27 01:17:53 +00:00
mainProgram = "ciel";
2023-03-07 16:12:29 +00:00
};
}