diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 22:03:34 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-04-23 23:08:05 +0200 |
commit | b3d9a07086cb81e53e20837c96a3153453b0a123 (patch) | |
tree | e6c496d73203465d2ec4265d3200bf32f56362b3 /pkgs/aszlig/nixops | |
parent | 145a8be2b22a3a0459a46e70e8b5d8f4ecc701aa (diff) |
pkgs: Move all of my packages into pkgs/aszlig
This already has started in e0abe1dbbda54c1f048b5d38df05e1a3289216a6 with @Profpatsch putting his packages into its own namespace, so let's continue on that and move my crap into my own namespace as well. The only difference in my approach is that I'm now also using a new function called callPackageScope, which declutters pkgs/default.nix a bit and moves the individual callPackage invocations into aszlig/default.nix. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/aszlig/nixops')
-rw-r--r-- | pkgs/aszlig/nixops/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/aszlig/nixops/default.nix b/pkgs/aszlig/nixops/default.nix new file mode 100644 index 00000000..f97e3716 --- /dev/null +++ b/pkgs/aszlig/nixops/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, fetchpatch, git }: + +let + rev = "bbf9a792d06c9a60c74dabe2937a9dfda9bff8f7"; + sha256 = "0a1mx0ngp0zg65r1rx99rina4wbfjyzrziw2z9788v629j58p4jd"; + + 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 |