feat: switch to crane
This commit is contained in:
parent
ed69a54524
commit
837ce3ab3e
3 changed files with 33 additions and 9 deletions
14
flake.nix
14
flake.nix
|
@ -2,6 +2,8 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
crane.url = "github:ipetkov/crane";
|
||||
|
||||
flake-parts = {
|
||||
url = "github:hercules-ci/flake-parts";
|
||||
inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||
|
@ -9,7 +11,12 @@
|
|||
};
|
||||
|
||||
outputs =
|
||||
{ self, flake-parts, ... }@inputs:
|
||||
{
|
||||
self,
|
||||
crane,
|
||||
flake-parts,
|
||||
...
|
||||
}@inputs:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
|
@ -22,7 +29,10 @@
|
|||
{ self', pkgs, ... }:
|
||||
{
|
||||
packages = {
|
||||
tyrolienne = pkgs.callPackage ./package.nix { inherit self; };
|
||||
tyrolienne = pkgs.callPackage ./package.nix {
|
||||
inherit self;
|
||||
craneLib = crane.mkLib pkgs;
|
||||
};
|
||||
default = self'.packages.tyrolienne;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue