mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 14:33:28 +01:00
disko2: Create package
This requires a lot of restructuring. The .nix files have to be bundled together with the python files, so they need to follow python's module system structure. I ran `nix-fast-build --no-link -j 2 --eval-workers 3 --flake .#checks` and it succeeded, so I'm reasonably confident I changed everything as required.
This commit is contained in:
1 parent
5da578139e
commit
389235b63f
88 files changed
+374
-282
No files matched your search
@@ -23,7 +23,7 @@
|
||||
{
|
||||
nixosModules.default = self.nixosModules.disko; # convention
|
||||
nixosModules.disko.imports = [ ./module.nix ];
|
||||
lib = import ./lib {
|
||||
lib = import ./src/disko_lib {
|
||||
inherit (nixpkgs) lib;
|
||||
};
|
||||
packages = forAllSystems (system:
|
||||
@@ -32,6 +32,7 @@
|
||||
in
|
||||
{
|
||||
disko = pkgs.callPackage ./package.nix { diskoVersion = version; };
|
||||
disko2 = pkgs.callPackage ./package-disko2.nix { diskoVersion = version; };
|
||||
# alias to make `nix run` more convenient
|
||||
disko-install = self.packages.${system}.disko.overrideAttrs (_old: {
|
||||
name = "disko-install";
|
||||
@@ -61,7 +62,7 @@
|
||||
|
||||
shellcheck = pkgs.runCommand "shellcheck" { nativeBuildInputs = [ pkgs.shellcheck ]; } ''
|
||||
cd ${./.}
|
||||
shellcheck disk-deactivate/disk-deactivate disko
|
||||
shellcheck src/disk-deactivate/disk-deactivate disko disko2
|
||||
touch $out
|
||||
'';
|
||||
in
|
||||
|
||||
Reference in new issue
Block a user