Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binlore for disko and disko-install #795

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Add binlore for disko and disko-install #795

merged 1 commit into from
Sep 24, 2024

Conversation

Jayman2000
Copy link
Contributor

See the commit message for details. Also, you might want to view this PR’s commit with git show --word-diff. GitHub’s diff for this commit is kind of hard to read.

package.nix Show resolved Hide resolved
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 <[email protected]>
@iFreilicht iFreilicht merged commit c61e50b into nix-community:master Sep 24, 2024
3 checks passed
@Jayman2000 Jayman2000 deleted the binlore-for-disko-commands branch September 24, 2024 10:12
@iFreilicht
Copy link
Contributor

@Jayman2000 I'm currently updating the package in nixpkgs. Is it necessary to add passthru.binlore there as well?

@Jayman2000
Copy link
Contributor Author

It’s not necessary, but it would definitely be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants