Take hsluaSrc as argument
This commit is contained in:
parent
3135ac8523
commit
3f34ac0a83
2
hslua/default.nix
Normal file
2
hslua/default.nix
Normal file
@ -0,0 +1,2 @@
|
||||
# DO NOT HAND-EDIT THIS FILE
|
||||
import (import ./thunk.nix)
|
7
hslua/github.json
Normal file
7
hslua/github.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"owner": "obsidiansystems",
|
||||
"repo": "hslua",
|
||||
"private": false,
|
||||
"rev": "4e163088c6ab198023d45c49c20d66ff2fae7cce",
|
||||
"sha256": "05r20zk4hzj8q0a087z0w1z6iz4s7nprx74247zpi2s33kvdbbl8"
|
||||
}
|
12
hslua/thunk.nix
Normal file
12
hslua/thunk.nix
Normal file
@ -0,0 +1,12 @@
|
||||
# DO NOT HAND-EDIT THIS FILE
|
||||
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
|
||||
if !fetchSubmodules && !private then builtins.fetchTarball {
|
||||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
|
||||
} else (import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
|
||||
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
|
||||
}) {}).fetchFromGitHub {
|
||||
inherit owner repo rev sha256 fetchSubmodules private;
|
||||
};
|
||||
json = builtins.fromJSON (builtins.readFile ./github.json);
|
||||
in fetch json
|
Loading…
Reference in New Issue
Block a user