mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-22 15:24:26 +03:00
Pin and make the project structure conform more to todomvc-nix
This makes the Nix files work like todomvc-nix but a little simplified. Also it pins nixpkgs because for development (tests), you need -unstable instead of release-18.09 so that's automatic now.
This commit is contained in:
parent
da7091c37b
commit
76ca66f59c
@ -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
13
nix/default.nix
Normal 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
5
nix/nixpkgs.nix
Normal 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
4
nix/overlay.nix
Normal file
@ -0,0 +1,4 @@
|
||||
self: super: {
|
||||
arion = super.callPackage ../arion.nix {};
|
||||
tests = super.callPackage ../tests {};
|
||||
}
|
Loading…
Reference in New Issue
Block a user