Skip to content

Commit 6c44ff1

Browse files
authored
Merge pull request cointop-sh#294 from johnrichardrinehart/flake
feat(/flake.nix): add a nix flake to facilitate reproducible builds
2 parents 0fa9542 + 8d08e6d commit 6c44ff1

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

flake.lock

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils }:
8+
flake-utils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = nixpkgs.legacyPackages.${system};
11+
in
12+
rec {
13+
packages = flake-utils.lib.flattenTree {
14+
cointop = let lib = pkgs.lib; in
15+
pkgs.buildGo117Module {
16+
pname = "cointop";
17+
version = "1.6.9";
18+
19+
modSha256 = lib.fakeSha256;
20+
vendorSha256 = null;
21+
22+
src = ./.;
23+
24+
meta = {
25+
description = "A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀";
26+
homepage = "https://cointop.sh/";
27+
license = lib.licenses.mit;
28+
maintainers = [ "johnrichardrinehart" ]; # flake maintainers, not project maintainers
29+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
30+
};
31+
};
32+
};
33+
34+
defaultPackage = packages.cointop;
35+
defaultApp = packages.cointop;
36+
}
37+
);
38+
}

0 commit comments

Comments
 (0)