Skip to content

Commit

Permalink
fix nix derivation of lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Dec 7, 2024
1 parent bab823e commit 41c4ba2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@
lib = pkgs.lib;

crossHelpers = self.lib.crossHelpers system;
crossHelpersSelf = crossHelpers.forTarget "x86_64-linux";
in {
checks = import ./checks inputs system;

packages = {
default = self.packages."${system}".caligula;

lint-script = pkgs.writeScriptBin "lint.sh" ''
#!/bin/sh
export PATH=${lib.makeBinPath [ crossHelpers.baseToolchain ]}
${./scripts/lint.sh}
'';
lint-script = with pkgs;
writeShellScriptBin "lint.sh" ''
#!/bin/sh
export PATH=${
lib.makeBinPath ([ bash crossHelpers.baseToolchain ]
++ crossHelpersSelf.buildInputs)
}
${./scripts/lint.sh}
'';

caligula = self.packages."${system}"."caligula-${system}";
}
Expand Down

0 comments on commit 41c4ba2

Please sign in to comment.