mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
cosmic-session: make package more configurable
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
stdenv,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
withLogind ? true,
|
||||
withSystemd ? true,
|
||||
withAutostart ? false,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
@@ -41,6 +44,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
buildInputs = [ bash ];
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures =
|
||||
lib.optional withLogind "logind"
|
||||
++ lib.optional withSystemd "systemd"
|
||||
++ lib.optional withAutostart "autostart";
|
||||
dontUseJustBuild = true;
|
||||
|
||||
justFlags = [
|
||||
|
||||
Reference in New Issue
Block a user