feat: add initial modules
This commit is contained in:
29
packages/ahab.nix
Normal file
29
packages/ahab.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ nixpkgs, system, ... }:
|
||||
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "v0.3.2";
|
||||
in
|
||||
pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "ahab";
|
||||
inherit version;
|
||||
|
||||
src = pkgs.fetchFromGitea {
|
||||
domain = "git.janezic.dev";
|
||||
owner = "janezicmatej";
|
||||
repo = "ahab";
|
||||
rev = version;
|
||||
sha256 = "sha256-bL8LPpD5k97XPYftXhPr7V/LNOB71pcBlsfBjJUIeG8";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-f8omNtjLF5gMJGgxdzWifStcs8d4fu++EegR2auObXE";
|
||||
|
||||
buildType = "debug";
|
||||
|
||||
meta = {
|
||||
description = "ahab";
|
||||
homepage = "https://git.janezic.dev/janezicmatej/ahab";
|
||||
license = pkgs.lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
23
packages/ca-matheo-si.nix
Normal file
23
packages/ca-matheo-si.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ nixpkgs, system, ... }:
|
||||
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "C6r62em";
|
||||
in
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "ca-matheo-si";
|
||||
version = version;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://ipa2.matheo.si/ipa/config/ca.crt";
|
||||
sha256 = "sha256-C6r62emPyw1kxUZOTWhwABNyBEWTTLMEVX5Ma/2i9ls";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp $src $out/ca-matheo-si.cert
|
||||
'';
|
||||
}
|
||||
1
packages/default.nix
Normal file
1
packages/default.nix
Normal file
@@ -0,0 +1 @@
|
||||
{ lib, my-lib }: args: my-lib.mapDir ./. args
|
||||
36
packages/ggman.nix
Normal file
36
packages/ggman.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ nixpkgs-master, system, ... }:
|
||||
|
||||
let
|
||||
nixpkgs = nixpkgs-master;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "e24855c";
|
||||
in
|
||||
pkgs.buildGoModule.override
|
||||
{
|
||||
go = pkgs.go_1_26;
|
||||
}
|
||||
{
|
||||
pname = "ggman";
|
||||
inherit version;
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "tkw1536";
|
||||
repo = "ggman";
|
||||
rev = version;
|
||||
sha256 = "sha256-H78xtF7l5joX3/qDFaRIT4LyZpHmm6DMR4JIKzNO7c0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-w8NrOt0xtn+/gugJ4amzdJP70Y5KHe5DlhsEprycm3U=";
|
||||
subPackages = [ "cmd/ggman" ];
|
||||
|
||||
ldflags = [
|
||||
"-X go.tkw01536.de/ggman.buildVersion=${version}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Manager for all your local git repositories";
|
||||
homepage = "https://github.com/tkw1536/ggman";
|
||||
license = pkgs.lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
24
packages/git-linearize.nix
Normal file
24
packages/git-linearize.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ nixpkgs, system, ... }:
|
||||
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "main";
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "git-linearize";
|
||||
inherit version;
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "zegl";
|
||||
repo = "extremely-linear";
|
||||
rev = version;
|
||||
sha256 = "sha256-aZGxX4B0hUrYWxViFAjbZ4dCWC2ujEBAlBKdx408KhA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pkgs.lucky-commit ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/git-linearize $src/shit $out/bin/
|
||||
'';
|
||||
}
|
||||
28
packages/releasectl.nix
Normal file
28
packages/releasectl.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ nixpkgs-master, system, ... }:
|
||||
|
||||
let
|
||||
nixpkgs = nixpkgs-master;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "v1.25.0";
|
||||
python = pkgs.python313;
|
||||
in
|
||||
|
||||
python.pkgs.buildPythonPackage rec {
|
||||
pname = "releasectl";
|
||||
version = "1.2.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://gitlab.com/flarenetwork/infra-public/pipeliner/-/package_files/216813866/download";
|
||||
sha256 = "sha256-ScBG8BoOKDdOAHTFP+zwyk+Kfu31WoKQSRkutOvnJ5E";
|
||||
};
|
||||
|
||||
format = "wheel"; # if it uses poetry/PEP517, otherwise "setuptools"
|
||||
# nativeBuildInputs = [ python.pkgs.setuptools python.pkgs.wheel ];
|
||||
# propagatedBuildInputs = with python.pkgs; [
|
||||
# # add runtime deps here if needed
|
||||
# ];
|
||||
|
||||
# pyproject = true;
|
||||
# build-system = [ pkgs.python313Packages.hatchling ];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user