summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-02-03 23:44:11 +0100
committerpennae <github@quasiparticle.net>2023-02-04 02:41:44 +0100
commit8fc5f18c71bed12414cade0cd9c980faef31cff5 (patch)
tree04d7aac501836c65284170e80ab892008e1c981f
parent65bfd803eb943078cf3608003039708c06f58454 (diff)
downloadminor-skulk-8fc5f18c71bed12414cade0cd9c980faef31cff5.tar.gz
minor-skulk-8fc5f18c71bed12414cade0cd9c980faef31cff5.tar.xz
minor-skulk-8fc5f18c71bed12414cade0cd9c980faef31cff5.zip
update, checkInputs -> nativeCheckInputs
update flake locks, which also changes how check dependencies are used. none of these actually run on the target arch, only the host, so they all have to be native now.
-rw-r--r--default.nix24
-rw-r--r--flake.lock6
2 files changed, 15 insertions, 15 deletions
diff --git a/default.nix b/default.nix
index f97d645..d092a22 100644
--- a/default.nix
+++ b/default.nix
@@ -14,16 +14,11 @@ rustPlatform.buildRustPackage rec {
version = "0.1.0";
src = lib.cleanSource ./.;
+ cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [
pkg-config
];
- checkInputs = [
- openssl
- postgresql
- postgresqlTestHook
- (python3.withPackages (p: [ p.pytest p.pyfxa p.requests p.http-ece p.aiosmtpd ]))
- ];
buildInputs = [
openssl
];
@@ -32,6 +27,17 @@ rustPlatform.buildRustPackage rec {
patchShebangs ./tests/run.sh
'';
+ nativeCheckInputs = [
+ openssl
+ postgresql
+ postgresqlTestHook
+ (python3.withPackages (p: [ p.pytest p.pyfxa p.requests p.http-ece p.aiosmtpd ]))
+ ];
+
+ preCheck = ''
+ openssl ecparam -genkey -name prime256v1 -out private_key.pem
+ '';
+
# test config for postgres hook and integration tests
PGDATABASE = "testdb";
PGUSER = "testuser";
@@ -41,10 +47,4 @@ rustPlatform.buildRustPackage rec {
ROCKET_VAPID_KEY = "private_key.pem";
ROCKET_VAPID_SUBJECT = "undefined"; # not needed for tests
ROCKET_MAIL_FROM = "minor skulk <noreply@localhost>";
-
- preCheck = ''
- openssl ecparam -genkey -name prime256v1 -out private_key.pem
- '';
-
- cargoLock.lockFile = ./Cargo.lock;
}
diff --git a/flake.lock b/flake.lock
index 3b26f34..f857a93 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
- "lastModified": 1653704018,
- "narHash": "sha256-5dzlxE4okyu+M39yeVtHWQXzDZQxFF5rUB1iY9R6Lb4=",
+ "lastModified": 1675446098,
+ "narHash": "sha256-xB4doWLd849LKDKqYnTdmteX5TVEfZIH6WiGvj8wMi4=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "13f08d71ceff5101321e0291854495a1ec153a5e",
+ "rev": "a59fe7abba1be9e515e7333005ff8a36f86876b2",
"type": "github"
},
"original": {