Merge pull request #14 from hercules-ci/issue-5

Pin and make the project structure conform more to todomvc-nix
This commit is contained in:
Robert Hensing 2019-01-20 17:14:06 +01:00 committed by GitHub
commit e7ad732bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 6 deletions

View file

@ -1,6 +1,5 @@
{ pkgs ? import ./pkgs.nix }:
args@{ pkgs ? import ./nix args, ... }:
{
inherit (pkgs) arion;
tests = pkgs.callPackage ./tests {};
inherit (pkgs) arion tests;
}

13
nix/default.nix Normal file
View file

@ -0,0 +1,13 @@
/**
* This is the entry-point for all nix execution in this project.
*/
{ nixpkgsSrc ? ./nixpkgs.nix, ... }:
import (import ./nixpkgs.nix) {
# Makes the config pure as well. See <nixpkgs>/top-level/impure.nix:
config = {
};
overlays = [
# all the packages are defined there:
(import ./overlay.nix)
];
}

5
nix/nixpkgs.nix Normal file
View file

@ -0,0 +1,5 @@
# to update: $ nix-prefetch-url --unpack url
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/be445a9074f139d63e704fa82610d25456562c3d.tar.gz";
sha256 = "15dc7gdspimavcwyw9nif4s59v79gk18rwsafylffs9m1ld2dxwa";
}

4
nix/overlay.nix Normal file
View file

@ -0,0 +1,4 @@
self: super: {
arion = super.callPackage ../arion.nix {};
tests = super.callPackage ../tests {};
}

View file

@ -1,3 +0,0 @@
import <nixpkgs> {
overlays = [ (self: super: { arion = super.callPackage ./arion.nix {}; }) ];
}