Merge pull request #188 from NotAShelf/fix-build-ci
CI: fix build workflow
This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717285511,
|
"lastModified": 1727826117,
|
||||||
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
|
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
|
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717196966,
|
"lastModified": 1728492678,
|
||||||
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "57610d2f8f0937f39dbd72251e9614b1561942d8",
|
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
37
flake.nix
37
flake.nix
@@ -13,7 +13,6 @@
|
|||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
nixpkgs,
|
|
||||||
systems,
|
systems,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
@@ -32,19 +31,25 @@
|
|||||||
# provide the formatter for nix fmt
|
# provide the formatter for nix fmt
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells = {
|
||||||
inputsFrom = builtins.attrValues self'.packages;
|
default = pkgs.mkShell {
|
||||||
|
inputsFrom = builtins.attrValues self'.packages;
|
||||||
|
packages = with pkgs; [
|
||||||
|
rustc # rust compiler
|
||||||
|
gcc
|
||||||
|
cargo # rust package manager
|
||||||
|
clippy # opinionated rust formatter
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
nix = pkgs.mkShellNoCC {
|
||||||
alejandra # nix formatter
|
packages = with pkgs; [
|
||||||
rustfmt # rust formatter
|
alejandra # nix formatter
|
||||||
statix # lints and suggestions
|
rustfmt # rust formatter
|
||||||
deadnix # clean up unused nix code
|
statix # lints and suggestions
|
||||||
rustc # rust compiler
|
deadnix # clean up unused nix code
|
||||||
gcc
|
];
|
||||||
cargo # rust package manager
|
};
|
||||||
clippy # opinionated rust formatter
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = let
|
packages = let
|
||||||
@@ -60,9 +65,11 @@
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
default = self'.packages.anyrun;
|
default = self'.packages.anyrun;
|
||||||
anyrun = callPackage ./nix/default.nix {inherit inputs lockFile;};
|
|
||||||
|
|
||||||
anyrun-with-all-plugins = pkgs.callPackage ./nix/default.nix {
|
# By default the anyrun package is built without any plugins
|
||||||
|
# as per the `dontBuildPlugins` arg.
|
||||||
|
anyrun = callPackage ./nix/default.nix {inherit inputs lockFile;};
|
||||||
|
anyrun-with-all-plugins = callPackage ./nix/default.nix {
|
||||||
inherit inputs lockFile;
|
inherit inputs lockFile;
|
||||||
dontBuildPlugins = false;
|
dontBuildPlugins = false;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user