nix: optionally include shell

This commit is contained in:
Soramane
2025-07-16 13:43:12 +10:00
parent b1019d1192
commit 89892f4d09
3 changed files with 97 additions and 14 deletions
+18 -14
View File
@@ -15,6 +15,8 @@
wl-screenrec, wl-screenrec,
dconf, dconf,
killall, killall,
caelestia-shell,
withShell ? false,
discordBin ? "discord", discordBin ? "discord",
qtctStyle ? "Fusion", qtctStyle ? "Fusion",
}: }:
@@ -37,20 +39,22 @@ python3.pkgs.buildPythonApplication {
pythonImportsCheck = ["caelestia"]; pythonImportsCheck = ["caelestia"];
nativeBuildInputs = [installShellFiles]; nativeBuildInputs = [installShellFiles];
propagatedBuildInputs = [ propagatedBuildInputs =
swappy [
libnotify swappy
slurp libnotify
wl-clipboard slurp
cliphist wl-clipboard
app2unit cliphist
dart-sass app2unit
grim dart-sass
fuzzel grim
wl-screenrec fuzzel
dconf wl-screenrec
killall dconf
]; killall
]
++ lib.optional withShell caelestia-shell;
SETUPTOOLS_SCM_PRETEND_VERSION = 1; SETUPTOOLS_SCM_PRETEND_VERSION = 1;
Generated
+72
View File
@@ -20,6 +20,56 @@
"type": "github" "type": "github"
} }
}, },
"caelestia-cli": {
"inputs": {
"app2unit": [
"caelestia-shell",
"app2unit"
],
"nixpkgs": [
"caelestia-shell",
"nixpkgs"
]
},
"locked": {
"lastModified": 1752566000,
"narHash": "sha256-xaSDZXvZtuM+88PsmfTDWv6+VxN5cOsT/5/czsk3xgI=",
"owner": "caelestia-dots",
"repo": "cli",
"rev": "b1019d11924d1bc9440f457ddf94fc0d8a230ff4",
"type": "github"
},
"original": {
"owner": "caelestia-dots",
"repo": "cli",
"type": "github"
}
},
"caelestia-shell": {
"inputs": {
"app2unit": [
"app2unit"
],
"caelestia-cli": "caelestia-cli",
"nixpkgs": [
"nixpkgs"
],
"quickshell": "quickshell"
},
"locked": {
"lastModified": 1752637099,
"narHash": "sha256-08oPnEGYkuU7Vqa4F7rOi4E9j2Drigm3DxdOA+/mgF4=",
"owner": "caelestia-dots",
"repo": "shell",
"rev": "19431534c954f763eb095dd131fd0b19ff74837b",
"type": "github"
},
"original": {
"owner": "caelestia-dots",
"repo": "shell",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1752480373, "lastModified": 1752480373,
@@ -36,9 +86,31 @@
"type": "github" "type": "github"
} }
}, },
"quickshell": {
"inputs": {
"nixpkgs": [
"caelestia-shell",
"nixpkgs"
]
},
"locked": {
"lastModified": 1752631407,
"narHash": "sha256-dLDtKxh1VabwLxv5xbjI+oRkDyqWEKGITU+0dEaaW28=",
"ref": "refs/heads/master",
"rev": "4d8055f1cd9924bcace59405894b8879633eb83d",
"revCount": 638,
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
}
},
"root": { "root": {
"inputs": { "inputs": {
"app2unit": "app2unit", "app2unit": "app2unit",
"caelestia-shell": "caelestia-shell",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }
+7
View File
@@ -8,6 +8,12 @@
url = "github:soramanew/app2unit"; url = "github:soramanew/app2unit";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
caelestia-shell = {
url = "github:caelestia-dots/shell";
inputs.nixpkgs.follows = "nixpkgs";
inputs.app2unit.follows = "app2unit";
};
}; };
outputs = { outputs = {
@@ -26,6 +32,7 @@
caelestia-cli = pkgs.callPackage ./default.nix { caelestia-cli = pkgs.callPackage ./default.nix {
rev = self.rev or self.dirtyRev; rev = self.rev or self.dirtyRev;
app2unit = inputs.app2unit.packages.${pkgs.system}.default; app2unit = inputs.app2unit.packages.${pkgs.system}.default;
caelestia-shell = inputs.caelestia-cli.packages.${pkgs.system}.default;
}; };
default = caelestia-cli; default = caelestia-cli;
}); });