From 593d3bb321b25115c42b8a8eb8bdc03e0caa5fb2 Mon Sep 17 00:00:00 2001 From: morguldir Date: Sun, 8 Sep 2024 05:03:30 +0200 Subject: [PATCH] nix: update flake.lock, skip building tests for liburing Signed-off-by: morguldir --- flake.lock | 22 +++++++++++----------- flake.nix | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/flake.lock b/flake.lock index b0508519..15ce8e43 100644 --- a/flake.lock +++ b/flake.lock @@ -205,11 +205,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1725604324, - "narHash": "sha256-+VgeYuaCQn5vmoH1GTYQzvVTtWxirZmdDQJKr8uLgQI=", + "lastModified": 1725690497, + "narHash": "sha256-5fT+96rV7Hx29HG+4/oBbr3V+yExKuLN2vcBcPbVBlU=", "owner": "nix-community", "repo": "fenix", - "rev": "d9afdb4465ba2f20bb73b0ff5d2c2837cafc2e14", + "rev": "4b8d964df93d1f918ee6c4f003b3548c432cc866", "type": "github" }, "original": { @@ -413,7 +413,7 @@ "flake": false, "locked": { "lastModified": 1725659644, - "narHash": "sha256-b7CciZaCayY6HcPQ/jjQk/sye/PINk0wP8R8Y3OMW0c=", + "narHash": "sha256-WjnpmopfvFoUbubIu9bki+Y6P4YXDfvnW4+72hniq3g=", "owner": "axboe", "repo": "liburing", "rev": "0fe5c09195c0918f89582dd6ff098a58a0bdf62a", @@ -637,16 +637,16 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1725432240, - "narHash": "sha256-+yj+xgsfZaErbfYM3T+QvEE2hU7UuE+Jf0fJCJ8uPS0=", + "lastModified": 1725534445, + "narHash": "sha256-Yd0FK9SkWy+ZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ad416d066ca1222956472ab7d0555a6946746a80", + "rev": "9bb1e7571aadf31ddb4af77fc64b2d59580f9a39", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", + "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } @@ -712,11 +712,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1725548942, - "narHash": "sha256-ZnF5MaOAeiiKIATYN4rrqNsnhSQOQ+Hvfg0mHLvN04Y=", + "lastModified": 1725630423, + "narHash": "sha256-gNCLk3Zg7JlAwmWbVHTH6f3+iqdeQ4fheOotCZy8x5M=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "124c7482167ff6eea4f7663c0be87ea568ccd8c6", + "rev": "08c7bbc2dbe4dcc8968484f1a0e1e6fe7a1d4f6d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2439a7f4..1351cd3c 100644 --- a/flake.nix +++ b/flake.nix @@ -3,12 +3,12 @@ attic.url = "github:zhaofengli/attic?ref=main"; cachix.url = "github:cachix/cachix?ref=master"; complement = { url = "github:matrix-org/complement?ref=main"; flake = false; }; - crane = { url = "github:ipetkov/crane?ref=master"; inputs.nixpkgs.follows = "nixpkgs"; }; + crane = { url = "github:ipetkov/crane?ref=master"; }; fenix = { url = "github:nix-community/fenix?ref=main"; inputs.nixpkgs.follows = "nixpkgs"; }; flake-compat = { url = "github:edolstra/flake-compat?ref=master"; flake = false; }; flake-utils.url = "github:numtide/flake-utils?ref=main"; nix-filter.url = "github:numtide/nix-filter?ref=main"; - nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable"; rocksdb = { url = "github:girlbossceo/rocksdb?ref=v9.5.2"; flake = false; }; liburing = { url = "github:axboe/liburing?ref=master"; flake = false; }; }; @@ -38,7 +38,15 @@ inherit inputs; main = self.callPackage ./nix/pkgs/main {}; oci-image = self.callPackage ./nix/pkgs/oci-image {}; - rocksdb = pkgs.rocksdb.overrideAttrs (old: { + liburing = pkgs.liburing.overrideAttrs { + # Tests weren't building + outputs = [ "out" "dev" "man" ]; + buildFlags = [ "library"]; + src = inputs.liburing; + }; + rocksdb = (pkgs.rocksdb.override { + liburing = self.liburing; + }).overrideAttrs (old: { src = inputs.rocksdb; version = pkgs.lib.removePrefix "v" @@ -76,14 +84,6 @@ # preInstall hooks has stuff for messing with ldb/sst_dump which we dont need or use preInstall = ""; }); - # TODO: remove once https://github.com/NixOS/nixpkgs/pull/314945 is available - liburing = pkgs.liburing.overrideAttrs (old: { - # the configure script doesn't support these, and unconditionally - # builds both static and dynamic libraries. - configureFlags = pkgs.lib.subtractLists - [ "--enable-static" "--disable-shared" ] - old.configureFlags; - }); }); scopeHost = mkScope pkgsHost;