From 75260da0a86a8abe4e5207fa9df9dc798edbeea4 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 30 Mar 2024 20:48:55 +0100 Subject: [PATCH] build: add nix to pkgs --- flake.lock | 103 ++++++++++++++++++++++++++++++++++++++++++++++++----- flake.nix | 1 + nixos.nix | 2 +- 3 files changed, 96 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 6673c16..9557dad 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" @@ -36,20 +52,58 @@ "type": "github" } }, - "nixpkgs": { + "libgit2": { + "flake": false, "locked": { - "lastModified": 1701040486, - "narHash": "sha256-vawYwoHA5CwvjfqaT3A5CT9V36Eq43gxdwpux32Qkjw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "45827faa2132b8eade424f6bdd48d8828754341a", + "lastModified": 1697646580, + "narHash": "sha256-oX4Z3S9WtJlwvj0uH9HlYcWv+x1hqp8mhXl7HsLu2f0=", + "owner": "libgit2", + "repo": "libgit2", + "rev": "45fd9ed7ae1a9b74b957ef4f337bc3c8b3df01b5", "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "libgit2", + "repo": "libgit2", + "type": "github" + } + }, + "nix": { + "inputs": { + "flake-compat": "flake-compat", + "libgit2": "libgit2", + "nixpkgs": "nixpkgs", + "nixpkgs-regression": "nixpkgs-regression" + }, + "locked": { + "lastModified": 1711812209, + "narHash": "sha256-3uijtGKH6tvQtXIhWzGojSVnoYvc0daAGA4LD0lV+Pc=", + "owner": "NixOS", + "repo": "nix", + "rev": "9b88e5284608116b7db0dbd3d5dd7a33b90d52d7", + "type": "github" + }, + "original": { + "id": "nix", "type": "indirect" } }, + "nixpkgs": { + "locked": { + "lastModified": 1709083642, + "narHash": "sha256-7kkJQd4rZ+vFrzWu8sTRtta5D1kBG0LSRYAfhtmMlSo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b550fe4b4776908ac2a861124307045f8e717c8e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "release-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-lib": { "locked": { "dir": "lib", @@ -68,7 +122,37 @@ "type": "github" } }, + "nixpkgs-regression": { + "locked": { + "lastModified": 1643052045, + "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", + "type": "github" + } + }, "nixpkgs_2": { + "locked": { + "lastModified": 1701040486, + "narHash": "sha256-vawYwoHA5CwvjfqaT3A5CT9V36Eq43gxdwpux32Qkjw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "45827faa2132b8eade424f6bdd48d8828754341a", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1681358109, "narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=", @@ -87,7 +171,8 @@ "root": { "inputs": { "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs", + "nix": "nix", + "nixpkgs": "nixpkgs_2", "rust-crate2nix": "rust-crate2nix", "rust-overlay": "rust-overlay" } @@ -111,7 +196,7 @@ "rust-overlay": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1701137803, diff --git a/flake.nix b/flake.nix index ba34b23..1a3d4c3 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ outputs = inputs @ { self , nixpkgs + , nix , flake-parts , rust-overlay , rust-crate2nix diff --git a/nixos.nix b/nixos.nix index ae5e478..0d32c26 100644 --- a/nixos.nix +++ b/nixos.nix @@ -35,7 +35,7 @@ in description = "Scatting system management"; after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; - environment.STAX_ARION_BIN = "${getBin pkgs.arion}/bin/arion"; + environment.STAX_ARION_BIN = "${pkgs.arion}/bin/arion"; environment.STAX_DIR = cfg.stackDir; environment.STAX_BIND = cfg.bindAddress;