Compare commits

...

2 commits

Author SHA1 Message Date
teutat3s aa3dfb8300
flake: fix build for multiple target systems 2024-06-16 20:46:27 +02:00
teutat3s 265e79e624
flake: add lock file 2024-06-16 20:46:16 +02:00
2 changed files with 61 additions and 4 deletions

58
flake.lock Normal file
View file

@ -0,0 +1,58 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1717285511,
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1718229064,
"narHash": "sha256-ZFav8A9zPNfjZg/wrxh1uZeMJHELRfRgFP+meq01XYk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5c2ec3a5c2ee9909904f860dadc19bc12cd9cc44",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1717284937,
"narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -15,6 +15,9 @@
systems = [ "x86_64-linux" "aarch64-linux" ]; systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = args@{ system, pkgs, lib, config, ... }: let perSystem = args@{ system, pkgs, lib, config, ... }: let
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
invoiceplane-template = pkgs.stdenv.mkDerivation { invoiceplane-template = pkgs.stdenv.mkDerivation {
name = "invoiceplane-template"; name = "invoiceplane-template";
src = ./.; src = ./.;
@ -25,10 +28,6 @@
}; };
in { in {
packages.default = invoiceplane-template; packages.default = invoiceplane-template;
packages.invoiceplane-template = invoiceplane-template;
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
}; };
}; };
} }