update nix flakes

This commit is contained in:
Laureηt 2024-07-20 16:40:48 +02:00
parent 7404605917
commit 0079280076
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
2 changed files with 51 additions and 23 deletions

View file

@ -1,30 +1,32 @@
{ {
"nodes": { "nodes": {
"flake-utils": { "flake-parts": {
"inputs": { "inputs": {
"systems": "systems" "nixpkgs-lib": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1687709756, "lastModified": 1719994518,
"narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=", "narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
"owner": "numtide", "owner": "hercules-ci",
"repo": "flake-utils", "repo": "flake-parts",
"rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7", "rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "numtide", "owner": "hercules-ci",
"repo": "flake-utils", "repo": "flake-parts",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687898314, "lastModified": 1721379653,
"narHash": "sha256-B4BHon3uMXQw8ZdbwxRK1BmxVOGBV4viipKpGaIlGwk=", "narHash": "sha256-8MUgifkJ7lkZs3u99UDZMB4kbOxvMEXQZ31FO3SopZ0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e18dc963075ed115afb3e312b64643bf8fd4b474", "rev": "1d9c2c9b3e71b9ee663d11c5d298727dace8d374",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -36,8 +38,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-parts": "flake-parts",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"systems": "systems"
} }
}, },
"systems": { "systems": {

View file

@ -1,14 +1,39 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs = {
flake-utils.url = "github:numtide/flake-utils"; url = "github:NixOS/nixpkgs/nixos-unstable";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
systems = {
url = "github:nix-systems/default";
};
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = inputs @ {
flake-utils.lib.eachDefaultSystem (system: nixpkgs,
let pkgs = nixpkgs.legacyPackages.${system}; flake-parts,
in { ...
devShell = }:
pkgs.mkShell { buildInputs = with pkgs; [ julia python3 nodejs ]; }; flake-parts.lib.mkFlake {inherit inputs;} {
}); systems = import inputs.systems;
perSystem = {
pkgs,
system,
...
}: {
packages.default = pkgs.stdenvNoCC.mkDerivation {
name = "website";
src = ./src;
dontUnpack = true;
installPhase = ''
mkdir -p $out
cp -r $src/ $out
'';
};
};
};
} }