nixpkgs/flake.nix

132 lines
3.5 KiB
Nix
Raw Normal View History

2024-07-10 12:56:54 +02:00
{
description = "ontake's custom packages!";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2024-07-10 13:05:59 +02:00
utils.url = "github:numtide/flake-utils";
2024-07-10 12:56:54 +02:00
};
outputs =
2024-07-10 14:03:43 +02:00
inputs@{
self,
nixpkgs,
utils,
...
}:
2024-07-10 14:34:12 +02:00
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlay ];
};
in {
overlay = final: prev: {
kon =
2024-07-10 14:03:43 +02:00
with pkgs;
(buildGoModule rec {
2024-07-10 12:56:54 +02:00
pname = "kon";
version = "0.0.1";
buildInputs = [
gcc
go
] ++ libs;
nativeBuildInputs = with pkgs; [
pkg-config
makeWrapper
];
subPackages = [ "." ];
src = fetchFromGitea {
domain = "git.ontake.dev";
owner = "go";
repo = "kon";
rev = "c94a27dc86c0dbe21f952d247d51b119e66bc6dc";
hash = "sha256-Fi8DkF8lBEdBcOKRKA0Zr9s4NDy1eSrIs9nQS5YA02Q=";
};
vendorHash = null;
meta = with lib; {
description = "A sysadmin tool for monitoring and system updates";
homepage = "https://git.ontake.dev/go/kon";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.linux;
};
postInstall = ''
wrapProgram "$out/bin/kon" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
'';
2024-07-10 13:57:44 +02:00
});
2024-07-10 14:34:12 +02:00
adam-gui = pkgs.symlinkJoin {
2024-07-10 14:03:43 +02:00
name = "adam-gui";
version = "0.0.1";
paths = with pkgs; [
(buildGoModule rec {
pname = "adam-gui";
version = "0.0.1";
buildInputs = [
gcc
go
] ++ libs;
nativeBuildInputs = with pkgs; [
pkg-config
addOpenGLRunpath
makeWrapper
];
subPackages = [ "." ];
src = fetchFromGitea {
domain = "git.ontake.dev";
owner = "go";
repo = "adam-gui";
rev = "a64eabcfd4a85d2a3fe3e88c8f668af2c4db741d";
hash = "sha256-igJie5yYj7LndBGd5XA7GU0qWalrK5j+YM0hCFunXVY=";
};
vendorHash = null;
meta = with lib; {
description = "A simple GUI for ADAM branded scales";
homepage = "https://git.ontake.dev/go/adam-gui";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.linux;
};
postInstall = ''
wrapProgram "$out/bin/adam-gui" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
'';
postFixup = ''
addOpenGLRunpath $out/bin/adam-gui
'';
})
(makeDesktopItem {
name = "ADAM GUI";
desktopName = "ADAM GUI";
exec = "adam-gui";
icon = "adam-gui";
comment = "A simple GUI for ADAM branded scales.";
categories = [
"Science"
"Utility"
];
})
];
};
2024-07-10 14:34:12 +02:00
};
};
2024-07-10 12:56:54 +02:00
}