Use stapelberg nix overlay to get VCS data into the build
Some checks failed
/ golint (push) Failing after 3s
Some checks failed
/ golint (push) Failing after 3s
This commit is contained in:
parent
4b0aaf5ed4
commit
0014edd679
1 changed files with 8 additions and 5 deletions
13
flake.nix
13
flake.nix
|
|
@ -5,18 +5,21 @@
|
|||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
proj.url = "github:Gleipnir-Technology/proj";
|
||||
stapelberg = {
|
||||
url = "github:stapelberg/nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, proj }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ stapelberg.overlays.goVcsStamping ];
|
||||
};
|
||||
projPkg = proj.packages.${system}.default;
|
||||
|
||||
# Override pkgs.proj with your custom proj
|
||||
customPkgs = pkgs // {
|
||||
proj = proj.packages.${system}.default;
|
||||
};
|
||||
package = pkgs.callPackage ./default.nix {
|
||||
proj = projPkg;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue