Commit Graph

10 Commits

Author SHA1 Message Date
Felix Uhl
72c867c439 Run nix fmt 2024-09-26 15:36:54 +02:00
Jason Yundt
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