Compare commits

...

5 commits

Author SHA1 Message Date
teutat3s 8fd252d743
devshell: add phpactor LSP 2024-10-07 15:41:44 +02:00
teutat3s da9eac700b
flake: add lock file, update description, bump
nixpkgs to 24.05
2024-10-07 15:39:03 +02:00
teutat3s 08292f95f9
Update gitignore 2024-10-07 15:37:44 +02:00
teutat3s 6cf6f7d88d
flake: fix build for multiple target systems 2024-10-07 15:37:30 +02:00
teutat3s eaad78f00e
flake: also build for aarch64-linux 2024-10-07 15:37:22 +02:00
3 changed files with 73 additions and 12 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
tags
result

58
flake.lock Normal file
View file

@ -0,0 +1,58 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1728193676,
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1727825735,
"narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,8 +1,8 @@
{
description = "b12f invoiceplane template";
description = "momo invoiceplane template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-parts.url = "github:hercules-ci/flake-parts";
};
@ -12,23 +12,25 @@
inputs.flake-parts.flakeModules.easyOverlay
];
systems = [ "x86_64-linux" ];
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = args@{ system, pkgs, lib, config, ... }: let
invoiceplane-template = pkgs.stdenv.mkDerivation {
perSystem = { config, pkgs, final, ... }: {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
phpactor
];
};
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
packages.invoiceplane-template = pkgs.stdenv.mkDerivation {
name = "invoiceplane-template";
src = ./.;
installPhase = ''
installPhase = ''
mkdir -p $out
cp *.php $out/
'';
};
in {
packages.default = invoiceplane-template;
packages.invoiceplane-template = invoiceplane-template;
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
};
};
}