1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

flake tweaks

This commit is contained in:
Robin Appelman 2022-08-21 02:23:00 +02:00
commit 6367b19473
2 changed files with 18 additions and 12 deletions

21
flake.lock generated
View file

@ -21,8 +21,8 @@
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 0, "lastModified": 0,
"narHash": "sha256-NMeMJ/QE+t9/OMMh/ziv0QcR5dbpwkuG7NNpnJj9YK0=", "narHash": "sha256-+Qmz6wx9qVGpbodRUOFs+ROTXlG/LbasiH+IikF1OQ8=",
"path": "/nix/store/q49vmrwr974gjayxqays8ylv3bl15p5v-source", "path": "/nix/store/7qwl8qpdxbdfw0n8dxbsza2xw54fcxsr-source",
"type": "path" "type": "path"
}, },
"original": { "original": {
@ -32,13 +32,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 0, "lastModified": 1660215038,
"narHash": "sha256-NMeMJ/QE+t9/OMMh/ziv0QcR5dbpwkuG7NNpnJj9YK0=", "narHash": "sha256-tqMyd5QB4MZh59wMHXqpro4hkKjz9ubQxkxFSuCuBGE=",
"path": "/nix/store/q49vmrwr974gjayxqays8ylv3bl15p5v-source", "owner": "NixOS",
"type": "path" "repo": "nixpkgs",
"rev": "45c9736ed69800a6ff2164fb4538c9e40dad25d6",
"type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "release-22.05",
"type": "indirect" "type": "indirect"
} }
}, },
@ -51,11 +54,11 @@
}, },
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1656928814, "lastModified": 1659877975,
"narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=", "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249", "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,6 +2,7 @@
inputs = { inputs = {
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk"; naersk.url = "github:nix-community/naersk";
nixpkgs.url = "nixpkgs/release-22.05";
}; };
outputs = { outputs = {
@ -11,11 +12,13 @@
naersk, naersk,
}: }:
utils.lib.eachDefaultSystem (system: let utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages."${system}"; pkgs = (import nixpkgs) {
naersk-lib = naersk.lib."${system}"; inherit system;
};
naersk = naersk.lib."${system}";
in rec { in rec {
# `nix build` # `nix build`
packages.tf-demo-parser = naersk-lib.buildPackage { packages.tf-demo-parser = naersk.buildPackage {
pname = "tf-demo-parser"; pname = "tf-demo-parser";
root = ./.; root = ./.;
}; };