17 Commits
Author SHA1 Message Date
Luna Schwalbe 42afa78080 Fix use of deprecated stdenv.isDarwin 2026-10-20 14:34:28 +02:00
Jörg Thalheim 49c1bc1b34 disko-install: switch to xcp 2025-08-25 09:53:42 +00:00
Jörg Thalheim 6d06f63fc0 use fileset when building disko
this can save us some rebuilds in CI
2025-06-06 09:02:11 +00:00
Jörg Thalheim 212ff71553 allow to build cli
this is useful for format scripts.
A remote builder is still necessary
2025-04-01 15:42:50 +00:00
Jörg Thalheim b2c95fb68f make devshell usuable on macOS 2025-04-01 15:42:50 +00:00
DavHau ff2d853a84 treewide: format all files 2025-02-15 10:08:56 +00:00
Felix Uhl aee84b5fb3 disko cli: add --version command
Fixes #745

This adds a script to create a release. Running it will create two
commits that would appear like this in `git log --oneline`:

    67b5fff (master) release: reset released flag
    0b808f3 (tag: v1.8.1) release: v1.8.1
    100d2f3 docs: last change before release

It also re-creates the `version.nix` file, which is used by the flake
to determine the final version the disko CLI will print.

If `disko --version` is run from exactly the commit tagged `v1.8.1`, it
will print `1.8.1`. If it is run from any commit past that (like
master), it will print `1.8.1-67b5fff`, and if it is run from a local
folder with uncommitted changes, it will print `1.8.1-67b5fff-dirty`.
2024-10-11 15:14:56 +00:00
Felix Uhl 72c867c439 Run nix fmt 2024-09-26 15:36:54 +02:00
Jason YundtandJörg Thalheim 6d2914c62c Add binlore for disko and disko-install
Consider this flake:

  {
    description = "Helper for reproducing a disko-related problem";
    inputs = {
      disko.url = "github:nix-community/disko/b1d6bed240abef5f5373e88fc7909f493013e557";
      nixpkgs.follows = "disko/nixpkgs";
    };

    outputs =
      {
        self,
        disko,
        nixpkgs,
      }:
      let
        system = "x86_64-linux";
        pkgs = nixpkgs.legacyPackages."${system}";
      in
      {
        packages."${system}".default =
          pkgs.resholve.writeScript "disko-install-binlore-test"
            {
              inputs = [ disko.packages."${system}".default ];
              interpreter = "${pkgs.lib.getExe pkgs.bash}";
            }
            ''
              disko --help
              disko-install --help
            '';
      };
  }

That flake will fail to build because resholve thinks that disko and
disko-install might be able to execute their arguments. This commit
fixes that problem.

Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2024-09-23 17:32:32 -04:00
beviu 4698b1ef37 disko: add nixos-install-tools to PATH
When running disko-install from a distribution that is not NixOS,
the nixos-install command was failing due to nixos-install not
being in PATH.

Fix the error by adding the nixos-install-tools package to the list
of packages passed to lib.makeBinPath.
2024-07-23 11:53:45 +00:00
Jörg Thalheim 72818e54ec move disko-install into disko package 2024-03-09 07:05:35 +00:00
lassulus 22b33a4fd6 types: refactor into diskoLib 2023-05-20 13:56:42 +02:00
Jörg Thalheim daaba55a28 delete obsolete types.nix 2023-02-02 14:42:09 +01:00
Jörg Thalheim 0fadf13755 hardcode nixpkgs in NIX_PATH of disko cli 2023-02-02 14:42:09 +01:00
Jörg Thalheim 50adcfe303 disko: fix packaging missing nix files 2023-02-02 14:42:09 +01:00
Jörg Thalheim 17d17217d8 use stdenvNoCC instead of barebone derivation 2022-12-09 14:34:12 +01:00
Jörg Thalheim 9e2c9d06f5 expose disko for non x86 2022-12-09 14:34:12 +01:00