mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
basic flake
This commit is contained in:
parent
d38a7ff0e5
commit
81558c1fee
3 changed files with 102 additions and 1 deletions
30
flake.nix
Normal file
30
flake.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
naersk.url = "github:nix-community/naersk";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, utils, naersk }:
|
||||
utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
naersk-lib = naersk.lib."${system}";
|
||||
in rec {
|
||||
# `nix build`
|
||||
packages.palantir = naersk-lib.buildPackage {
|
||||
pname = "palantir";
|
||||
root = ./.;
|
||||
};
|
||||
defaultPackage = packages.palantir;
|
||||
|
||||
# `nix run`
|
||||
apps.palantir = utils.lib.mkApp {
|
||||
drv = packages.palantir;
|
||||
};
|
||||
defaultApp = apps.palantir;
|
||||
|
||||
# `nix develop`
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ rustc cargo ];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue