feat: switch to crane

This commit is contained in:
uku 2025-05-09 22:32:09 +02:00
parent ed69a54524
commit 837ce3ab3e
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 33 additions and 9 deletions

View file

@ -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;
};