-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
42 lines (36 loc) · 1.26 KB
/
flake.nix
File metadata and controls
42 lines (36 loc) · 1.26 KB
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
39
40
41
42
{
description = "a collection of tiny packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: with nixpkgs.legacyPackages.${system};
{
packages = {
tiny-shell = rustPlatform.buildRustPackage rec {
pname = "tiny-shell";
version = "0.1.0";
src = fetchFromGitHub {
owner = "tiny-technologies";
repo = pname;
rev = "5f9d216f77e84643d05d6ce0a093c70e48de09fa";
sha256 = "sha256-5sCPDFTpLWAxX2skSnE3APhhcBKZ4dP364Jyg4GJit4=";
};
cargoSha256 = "sha256-4XxijeCyu27WqS+hS+eoFD9PYommj5BmvCJmADMgMgA=";
};
supersort = stdenv.mkDerivation rec {
pname = "supersort";
version = "0.1.0";
src = fetchFromGitHub {
owner = "tiny-technologies";
repo = pname;
rev = "f26765885d59da96bbeb82df3a387735d64adc07";
sha256 = "sha256-PNFkEqGbwbdU+t3g08waVGnHQ+IDVap+V3K7Sqfj/28=";
};
buildPhase = "make";
installPhase = "mkdir -p $out/bin; cp build/supersort $out/bin";
};
};
});
}