forked from fluidattacks/makes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
38 lines (37 loc) · 938 Bytes
/
default.nix
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
38
{system ? builtins.currentSystem}: let
args = import ./src/args/agnostic.nix {inherit system;};
makesVersion = "22.09";
inherit (args) __nixpkgs__;
inherit (args) makeScript;
in
makeScript {
aliases = [
"m-v${makesVersion}"
"makes"
"makes-v${makesVersion}"
];
replace = {
__argMakesSrc__ = ./.;
__argNixStable__ = __nixpkgs__.nixStable;
__argNixUnstable__ = __nixpkgs__.nixUnstable;
};
entrypoint = ''
__MAKES_SRC__=__argMakesSrc__ \
__NIX_STABLE__=__argNixStable__ \
__NIX_UNSTABLE__=__argNixUnstable__ \
python -u __argMakesSrc__/src/cli/main/__main__.py "$@"
'';
searchPaths = {
bin = [
__nixpkgs__.cachix
__nixpkgs__.git
__nixpkgs__.gnutar
__nixpkgs__.gzip
__nixpkgs__.nixStable
];
source = [
(import ./makes/cli/pypi/main.nix args)
];
};
name = "m";
}