Commit a778710e authored by Profpatsch's avatar Profpatsch

containers: pin nixpkgs to our patched stable version

Guarantees that every developer sees the same results when trying to
build our packages.
parent ed593bee
{ nixpkgsPath ? import ./nixpkgs.nix }:
let
lib = import <nixpkgs/lib>;
lib = import "${toString nixpkgsPath}/lib";
nixosFunction = import "${toString nixpkgsPath}/nixos";
# the base config
baseConfig = { ... }: {
......@@ -40,7 +42,7 @@ let
};
# eval a config
doEval = config: import <nixpkgs/nixos> {
doEval = config: nixosFunction {
configuration = config;
};
......
# a version of nixpkgs that has a few additional patches
# to enable the nix definitions in this folder.
# Plus, it’s pinned to a well-known working state.
let
domain = "gitlab.techcultivation.org";
owner = "Profpatsch";
repo = "nixpkgs-techcultivation";
rev = "a04fa4343aaab8ca0b5f6382522b32d18dc60504";
sha256 = "0s3wf4wb2rg4j7f326bi1iaxgilh5i1qp0hgq58mmyv2sp14jcmv";
in builtins.fetchTarball {
# taken from the nixpkgs definition of `fetchFromGitLab`
url = "https://${domain}/api/v4/projects/${owner}%2F${repo}/repository/archive.tar.gz?sha=${rev}";
inherit sha256;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment