-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
40 lines (38 loc) · 1.42 KB
/
Copy pathflake.nix
File metadata and controls
40 lines (38 loc) · 1.42 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
{
description = "hyperlinked";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: {
packages = {
"x86_64-linux" = let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
pkg = pkgs.stdenv.mkDerivation {
pname = "hyperlinked";
version = "0.2.10";
src = pkgs.fetchurl {
url = "https://github.com/nakajima/hyperlinked/releases/download/v0.2.10/hyperlinked-0.2.10-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "cc1ea43178f9b55e79dc065db9ae4a1e5627242969f3c844b8c21f24ecc4122c";
};
sourceRoot = ".";
installPhase = ''
install -m755 -D hyperlinked $out/bin/hyperlinked
'';
};
in { hyperlinked = pkg; default = pkg; };
"aarch64-linux" = let
pkgs = nixpkgs.legacyPackages.aarch64-linux;
pkg = pkgs.stdenv.mkDerivation {
pname = "hyperlinked";
version = "0.2.10";
src = pkgs.fetchurl {
url = "https://github.com/nakajima/hyperlinked/releases/download/v0.2.10/hyperlinked-0.2.10-aarch64-unknown-linux-gnu.tar.gz";
sha256 = "6374b669e33791b94d6ea9b5e6f733f6340a74c1b061f7733dbb61a796685acf";
};
sourceRoot = ".";
installPhase = ''
install -m755 -D hyperlinked $out/bin/hyperlinked
'';
};
in { hyperlinked = pkg; default = pkg; };
};
};
}