2017-11-30 03:31:13 +00:00
|
|
|
let
|
|
|
|
hostpkgs = import <nixpkgs> {};
|
|
|
|
|
|
|
|
srcDef = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
|
|
|
|
|
|
|
|
inherit (hostpkgs) fetchFromGitHub fetchpatch fetchurl;
|
|
|
|
in import (hostpkgs.stdenv.mkDerivation {
|
|
|
|
name = "ofborg-nixpkgs-${builtins.substring 0 10 srcDef.rev}";
|
|
|
|
phases = [ "unpackPhase" "patchPhase" "moveToOut" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
2021-05-16 15:29:07 +00:00
|
|
|
repo = "nixpkgs";
|
2017-11-30 03:31:13 +00:00
|
|
|
inherit (srcDef) rev sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
];
|
|
|
|
|
|
|
|
moveToOut = ''
|
|
|
|
root=$(pwd)
|
|
|
|
cd ..
|
|
|
|
mv "$root" $out
|
|
|
|
'';
|
|
|
|
})
|