Skip to content

Commit 7702987

Browse files
committed
feat: remove git revision from postgres package
This cause unnecessary rebuilds on every commit.
1 parent d27e78d commit 7702987

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nix/packages/postgres.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
{ self, inputs, ... }:
1+
{ inputs, ... }:
22
{
33
perSystem =
44
{ pkgs, lib, ... }:
55
let
6-
gitRev = "vcs=${self.shortRev or "dirty"}+${
7-
builtins.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")
8-
}";
9-
106
# Custom extensions that exist in our repository. These aren't upstream
117
# either because nobody has done the work, maintaining them here is
128
# easier and more expedient, or because they may not be suitable, or are
@@ -80,7 +76,6 @@
8076
name = "receipt";
8177
destination = "/receipt.json";
8278
text = builtins.toJSON {
83-
revision = gitRev;
8479
psql-version = pgbin.version;
8580
nixpkgs = {
8681
revision = inputs.nixpkgs.rev;

0 commit comments

Comments
 (0)