Skip to content
Snippets Groups Projects
Unverified Commit 00994a2d authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Advise use of nix-shell and hide the particulars

parent 1c4b5222
No related branches found
No related tags found
1 merge request!33nixpkgs/morph version handling improvements
......@@ -8,9 +8,9 @@ Building
The build system uses `Nix`_ which must be installed before anything can be built.
Builds are tested against a particular nixpkgs revision.
Start by exporting ``NIX_PATH`` to ensure you use the same revision::
Start by setting up the development/operations environment::
$ export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/$(cat nixpkgs.rev).tar.gz
$ nix-shell
Documentation
~~~~~~~~~~~~~
......
{ pkgs ? import <nixpkgs> { } }:
let
nixpkgs-rev = builtins.readFile ./nixpkgs.rev;
morph-src = pkgs.fetchFromGitHub {
owner = "DBCDK";
repo = "morph";
rev = "v1.4.0";
hash = "sha256:1y6clzi8sfnrv4an26b44r24nnxds1kj9aw3lmjbgxl9yrxxsj1k";
};
morph = pkgs.callPackage (morph-src + "/nix-packaging") { };
in
pkgs.mkShell {
NIX_PATH = "nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/${nixpkgs-rev}.tar.gz";
buildInputs = [
morph
];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment