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
|
||||
# several different architectures and operating systems.
|
||||
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
with pkgs; let buildGo110Package =
|
||||
callPackage <nixpkgs/pkgs/development/go-modules/generic> {
|
||||
go = go_1_10;
|
||||
};
|
||||
in buildGo110Package rec {
|
||||
let pkgs = import ((import <nixpkgs> {}).fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
rev = "1bc5bf4beb759e563ffc7a8a3067f10a00b45a7d";
|
||||
sha256 = "00gd96p7yz3rgpjjkizp397y2syfc272yvwxqixbjd1qdshbizmj";
|
||||
}) {};
|
||||
in with pkgs; buildGoPackage rec {
|
||||
name = "kontemplate-${version}";
|
||||
version = "master";
|
||||
src = ./.;
|
||||
|
|
Loading…
Reference in a new issue