-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
29 lines (23 loc) · 717 Bytes
/
default.nix
File metadata and controls
29 lines (23 loc) · 717 Bytes
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
{ pkgs ? import (fetchTarball {
name = "nixos-unstable-2022-12-07";
url = "https://github.com/NixOS/nixpkgs/archive/e62dbca3771f42c81dec4e704c09ef110ef3a3f8.tar.gz";
sha256 = "sha256-jj3Pq8Co7lRem8lF9vqeBTTTs+rX3UjSuebAF+QGezw=";
}) { } }:
with pkgs;
let
olaf = buildGoModule rec {
pname = "olaf";
version = "v1.0.0";
vendorSha256 = "sha256-Z5iIG0xXSb5iFbwWbDH7YD5hoX2Pe3TfJ103JX5bXOE=";
src = ./.;
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
buildInputs = [ xorg.libX11.dev ];
meta = with lib; {
homepage = "https://interrato.dev/olaf";
description = "A simple multi-clipboard system.";
license = licenses.bsd3;
};
};
in {
olaf = olaf;
}