blob: ed9a3d546024fd288e01fb73c8c74e8fd3ae3781 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, fetchFromGitHub, fetchpatch, git }:
let
rev = "e6f012a95988e52cc6555c04242056d319478b24";
sha256 = "0xz1nz3a49vwhzkjb0b9c7c83iwfpkpvsnq5bpgm2w3qii75vhkj";
master = stdenv.mkDerivation rec {
name = "nixops-upstream-patched";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nixops";
inherit rev sha256;
};
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
postPatch = ''
sed -i -re 's!<nixpkgs([^>]*)>!${import ../../nixpkgs-path.nix}\1!g' \
release.nix doc/manual/default.nix doc/manual/resource.nix
'';
installPhase = ''
cp -a . "$out"
'';
};
release = import "${master}/release.nix" {
nixopsSrc = {
outPath = master;
inherit rev;
revCount = 0;
shortRev = builtins.substring 0 7 rev;
};
officialRelease = false;
};
in stdenv.lib.getAttr stdenv.system release.build
|