setup package repo
This commit is contained in:
parent
2447df47a4
commit
a45dd19861
|
@ -0,0 +1,2 @@
|
|||
result
|
||||
result-*
|
|
@ -0,0 +1,9 @@
|
|||
{ system ? builtins.currentSystem }:
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> { inherit system; };
|
||||
|
||||
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
||||
|
||||
self = { MoonPlus = callPackage ./pkgs/moonplus { }; };
|
||||
in self
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
source $stdenv/setup
|
||||
genericBuild
|
|
@ -0,0 +1,25 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
let
|
||||
repo = fetchFromGitHub {
|
||||
owner = "pigpigyyy";
|
||||
repo = "MoonPlus";
|
||||
rev = "57191ed45bb7bd0ffcd917f00df2e940c900fb3c";
|
||||
sha256 = "0scbi3d83g7yr51gnxasz2h924wyhbfq3c4a7c7sb0rrzb7m8ln7";
|
||||
};
|
||||
|
||||
defaultAttrs = {
|
||||
builder = ./builder.sh;
|
||||
baseInputs = [];
|
||||
src = repo;
|
||||
version = "HEAD-57191ed4";
|
||||
name = "MoonPlus";
|
||||
system = builtins.currentSystem;
|
||||
|
||||
installPhase = ''
|
||||
ls
|
||||
install -D bin/release/moonc $out/bin/moonc
|
||||
'';
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation defaultAttrs
|
Loading…
Reference in New Issue