Update flake and make nixpkgs a top-level input

This commit is contained in:
Olivier 'reivilibre' 2024-05-08 11:44:21 +01:00
parent f7f363aa9e
commit 2afdfc0445
2 changed files with 17 additions and 22 deletions

View File

@ -2,7 +2,9 @@
"nodes": { "nodes": {
"naersk": { "naersk": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1698420672, "lastModified": 1698420672,
@ -20,34 +22,23 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1695825837, "lastModified": 1714971268,
"narHash": "sha256-4Ne11kNRnQsmSJCRSSNkFRSnHC4Y5gPDBIQGjjPfJiU=", "narHash": "sha256-IKwMSwHj9+ec660l+I4tki/1NRoeGpyA2GdtdYpAgEw=",
"path": "/nix/store/mrqyw5xdivdymj83v5d9jzzs2ifmw8h0-source", "owner": "NixOS",
"rev": "5cfafa12d57374f48bcc36fda3274ada276cf69e", "repo": "nixpkgs",
"type": "path" "rev": "27c13997bf450a01219899f5a83bd6ffbfc70d3c",
}, "type": "github"
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1695825837,
"narHash": "sha256-4Ne11kNRnQsmSJCRSSNkFRSnHC4Y5gPDBIQGjjPfJiU=",
"path": "/nix/store/mrqyw5xdivdymj83v5d9jzzs2ifmw8h0-source",
"rev": "5cfafa12d57374f48bcc36fda3274ada276cf69e",
"type": "path"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-23.11",
"type": "indirect" "type": "indirect"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"naersk": "naersk", "naersk": "naersk",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs",
"utils": "utils" "utils": "utils"
} }
}, },

View File

@ -2,8 +2,12 @@
description = "Matrix Monzo bot"; description = "Matrix Monzo bot";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk"; naersk = {
url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, utils, naersk }: outputs = { self, nixpkgs, utils, naersk }:
@ -18,7 +22,7 @@
buildInputs = with pkgs; [ buildInputs = with pkgs; [
openssl openssl
pkgconfig pkg-config
]; ];
}; };