From 685f6f619b9954e228b7325e9c53058fedf4dc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roche?= Date: Fri, 3 Oct 2025 16:01:24 +0200 Subject: [PATCH] fix: remove git revision from postgres package This cause unnecessary rebuilds on every commit. --- nix/packages/postgres.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nix/packages/postgres.nix b/nix/packages/postgres.nix index bc13180d0..576e82730 100644 --- a/nix/packages/postgres.nix +++ b/nix/packages/postgres.nix @@ -1,12 +1,8 @@ -{ self, inputs, ... }: +{ inputs, ... }: { perSystem = { pkgs, ... }: let - gitRev = "vcs=${self.shortRev or "dirty"}+${ - builtins.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101") - }"; - # Custom extensions that exist in our repository. These aren't upstream # either because nobody has done the work, maintaining them here is # easier and more expedient, or because they may not be suitable, or are @@ -80,7 +76,6 @@ name = "receipt"; destination = "/receipt.json"; text = builtins.toJSON { - revision = gitRev; psql-version = pgbin.version; nixpkgs = { revision = inputs.nixpkgs.rev;