feat(build): Pin nixpkgs used for release build
Pin the nixpkgs-commit used for building the Kontemplate release to a specific commit. Kontemplate builds should now be fully repeatable (and most likely reproducible!) on any machine running Nix.
This commit is contained in:
parent
a1d9d8b199
commit
850fdcf3e0
1 changed files with 7 additions and 7 deletions
14
release.nix
14
release.nix
|
@ -10,13 +10,13 @@
|
||||||
# This file is the Nix derivation used to build release binaries for
|
# This file is the Nix derivation used to build release binaries for
|
||||||
# several different architectures and operating systems.
|
# several different architectures and operating systems.
|
||||||
|
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
let pkgs = import ((import <nixpkgs> {}).fetchFromGitHub {
|
||||||
|
owner = "NixOS";
|
||||||
with pkgs; let buildGo110Package =
|
repo = "nixpkgs";
|
||||||
callPackage <nixpkgs/pkgs/development/go-modules/generic> {
|
rev = "1bc5bf4beb759e563ffc7a8a3067f10a00b45a7d";
|
||||||
go = go_1_10;
|
sha256 = "00gd96p7yz3rgpjjkizp397y2syfc272yvwxqixbjd1qdshbizmj";
|
||||||
};
|
}) {};
|
||||||
in buildGo110Package rec {
|
in with pkgs; buildGoPackage rec {
|
||||||
name = "kontemplate-${version}";
|
name = "kontemplate-${version}";
|
||||||
version = "master";
|
version = "master";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
Loading…
Reference in a new issue