mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-25 22:44:37 +03:00
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:
commit
e7ad732bb3
@ -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