-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsheldon.nix
38 lines (32 loc) · 1000 Bytes
/
sheldon.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
# Sheldon package definition
#
# This file will be similar to the package definition in nixpkgs:
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/sh/sheldon/package.nix
#
# Helpful documentation: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md
{
pkgs,
lib,
stdenv,
installShellFiles,
rustPlatform,
Security,
}:
rustPlatform.buildRustPackage {
name = "sheldon";
src = lib.cleanSource ./.;
cargoLock = {
lockFile = ./Cargo.lock;
# Allow dependencies to be fetched from git and avoid having to set the outputHashes manually
allowBuiltinFetchGit = true;
};
nativeBuildInputs = [installShellFiles];
buildInputs = [ pkgs.openssl pkgs.curl ] ++ lib.optionals stdenv.isDarwin [Security];
doCheck = false;
meta = with lib; {
description = "Fast, configurable, shell plugin manager";
homepage = "https://github.com/rossmacarthur/sheldon";
license = licenses.mit;
mainProgram = "sheldon";
};
}