update: packages: maintainers and inputs
This commit is contained in:
parent
b25ab132ac
commit
001cb9222a
@ -1,5 +1,7 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
maintainers = import ./maintainers.nix;
|
||||||
|
|
||||||
mkApp = { drv, name ? drv.pname, binPath ? "/bin/${name}" }:
|
mkApp = { drv, name ? drv.pname, binPath ? "/bin/${name}" }:
|
||||||
{
|
{
|
||||||
type = "app";
|
type = "app";
|
||||||
|
8
lib/maintainers.nix
Normal file
8
lib/maintainers.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
L-Nafaryus = {
|
||||||
|
email = "l.nafaryus@gmail.com";
|
||||||
|
github = "L-Nafaryus";
|
||||||
|
githubId = 37117584;
|
||||||
|
name = "George Kusayko";
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
stdenv, lib, pkgs,
|
stdenv, lib, pkgs,
|
||||||
version ? "1.10.0",
|
version ? "1.10.0",
|
||||||
sha256 ? "sha256-36GAGfvHZyNZe/Z7o3VrCCwApkZpJ+r2E8+1Hy32G5Q=", ...
|
sha256 ? "sha256-36GAGfvHZyNZe/Z7o3VrCCwApkZpJ+r2E8+1Hy32G5Q=", ...
|
||||||
@ -54,7 +55,7 @@ pkgs.python3.pkgs.buildPythonPackage {
|
|||||||
description = "Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies.";
|
description = "Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies.";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [];
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
broken = pkgs.stdenv.isDarwin;
|
broken = pkgs.stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,19 +5,23 @@ let
|
|||||||
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
||||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||||
|
|
||||||
in forAllSystems(system: let pkgs = nixpkgsFor.${system}; in {
|
in forAllSystems(system:
|
||||||
|
let
|
||||||
|
bonfire = self;
|
||||||
|
pkgs = nixpkgsFor.${system};
|
||||||
|
in {
|
||||||
|
|
||||||
example = pkgs.callPackage ./example {};
|
example = pkgs.callPackage ./example { inherit bonfire; };
|
||||||
|
|
||||||
netgen = pkgs.callPackage ./netgen {};
|
netgen = pkgs.callPackage ./netgen { inherit bonfire; };
|
||||||
|
|
||||||
dearpygui = pkgs.callPackage ./dearpygui {};
|
dearpygui = pkgs.callPackage ./dearpygui { inherit bonfire; };
|
||||||
|
|
||||||
openfoam = pkgs.callPackage ./openfoam {};
|
openfoam = pkgs.callPackage ./openfoam { inherit bonfire; };
|
||||||
|
|
||||||
spoofdpi = pkgs.callPackage ./spoofdpi {};
|
spoofdpi = pkgs.callPackage ./spoofdpi { inherit bonfire; };
|
||||||
|
|
||||||
lego = pkgs.callPackage ./lego {};
|
lego = pkgs.callPackage ./lego { inherit bonfire; };
|
||||||
|
|
||||||
ultimmc = pkgs.libsForQt5.callPackage ./ultimmc {};
|
ultimmc = pkgs.libsForQt5.callPackage ./ultimmc { inherit bonfire; };
|
||||||
})
|
})
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
|
||||||
|
|
||||||
project(hello-nix LANGUAGES CXX)
|
|
||||||
|
|
||||||
add_executable(hello-nix source/example.cpp)
|
|
||||||
|
|
||||||
install(
|
|
||||||
TARGETS hello-nix
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
|
||||||
)
|
|
@ -1,19 +0,0 @@
|
|||||||
{ stdenv, lib, pkgs, ... }:
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "example";
|
|
||||||
version = "1.0";
|
|
||||||
|
|
||||||
# local source
|
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ cmake ninja ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://www.example.org/";
|
|
||||||
description = "Example with hello nix.";
|
|
||||||
license = licenses.cc0;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = [];
|
|
||||||
broken = false;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
std::cout << "Hello Nix!" << std::endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitHub, buildGoModule, nixosTests,
|
fetchFromGitHub, buildGoModule, nixosTests,
|
||||||
version ? "c847ac4a4c55d6a5a457f6ef494cf45a47299e01",
|
version ? "c847ac4a4c55d6a5a457f6ef494cf45a47299e01",
|
||||||
@ -30,7 +31,7 @@ buildGoModule rec {
|
|||||||
description = "Let's Encrypt client and ACME library written in Go";
|
description = "Let's Encrypt client and ACME library written in Go";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://go-acme.github.io/lego/";
|
homepage = "https://go-acme.github.io/lego/";
|
||||||
maintainers = [];
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.tests.lego = nixosTests.acme;
|
passthru.tests.lego = nixosTests.acme;
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
stdenv, lib, pkgs,
|
stdenv, lib, pkgs,
|
||||||
version ? "6.2.2402",
|
version ? "6.2.2402",
|
||||||
sha256 ? "sha256-o3cj5k2VtYiGcs9Z9FyfwtOpDlZZlcO3kRgBSer6KAw=", ...
|
sha256 ? "sha256-o3cj5k2VtYiGcs9Z9FyfwtOpDlZZlcO3kRgBSer6KAw=", ...
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
let pkg = stdenv.mkDerivation {
|
||||||
pname = "netgen";
|
pname = "netgen";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
@ -52,12 +53,20 @@ stdenv.mkDerivation {
|
|||||||
metis
|
metis
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
shellHook = with pkgs; ''
|
||||||
|
export PYTHONPATH="${python3}/${python3.sitePackages}"
|
||||||
|
export PYTHONPATH="$PYTHONPATH:${pkg}/${python3.sitePackages}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
homepage = "https://github.com/NGSolve/netgen";
|
homepage = "https://github.com/NGSolve/netgen";
|
||||||
description = "NETGEN is an automatic 3d tetrahedral mesh generator";
|
description = "NETGEN is an automatic 3d tetrahedral mesh generator";
|
||||||
license = licenses.lgpl21Only;
|
license = licenses.lgpl21Only;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [];
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
broken = pkgs.stdenv.isDarwin;
|
broken = pkgs.stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
in pkg
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
stdenv, lib, pkgs,
|
stdenv, lib, pkgs,
|
||||||
version ? "11.20240116",
|
version ? "11.20240116",
|
||||||
sha256 ? "sha256-bNWlza3cL/lUrwrVEmPECvKbFkwR2rTMaccsn8amGFQ=", ...
|
sha256 ? "sha256-bNWlza3cL/lUrwrVEmPECvKbFkwR2rTMaccsn8amGFQ=", ...
|
||||||
@ -8,8 +9,8 @@ let
|
|||||||
major = lib.elemAt version' 0;
|
major = lib.elemAt version' 0;
|
||||||
revision = lib.elemAt version' 1;
|
revision = lib.elemAt version' 1;
|
||||||
realname = "OpenFOAM";
|
realname = "OpenFOAM";
|
||||||
|
in
|
||||||
in stdenv.mkDerivation {
|
let pkg = stdenv.mkDerivation {
|
||||||
pname = "openfoam";
|
pname = "openfoam";
|
||||||
inherit version major;
|
inherit version major;
|
||||||
|
|
||||||
@ -65,12 +66,19 @@ in stdenv.mkDerivation {
|
|||||||
cp -Ra $WM_PROJECT_DIR/* $out/${realname}-${major}
|
cp -Ra $WM_PROJECT_DIR/* $out/${realname}-${major}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
shellHook = ''
|
||||||
|
. ${pkg}/${realname}-${major}/etc/bashrc
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
homepage = "https://www.openfoam.org/";
|
homepage = "https://www.openfoam.org/";
|
||||||
description = "OpenFOAM is a free, open source CFD software released and developed by OpenFOAM Foundation";
|
description = "OpenFOAM is a free, open source CFD software released and developed by OpenFOAM Foundation";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [];
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
broken = pkgs.stdenv.isDarwin;
|
broken = pkgs.stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
in pkg
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
lib, pkgs,
|
lib, pkgs,
|
||||||
version ? "0.8",
|
version ? "0.8",
|
||||||
hash ? "sha256-kPCdOZl4m7KBb970TjJokXorKfnCvuV5Uq7lFQIh1z8=",
|
hash ? "sha256-kPCdOZl4m7KBb970TjJokXorKfnCvuV5Uq7lFQIh1z8=",
|
||||||
@ -25,7 +26,7 @@ pkgs.buildGoModule {
|
|||||||
homepage = "https://github.com/xvzc/SpoofDPI";
|
homepage = "https://github.com/xvzc/SpoofDPI";
|
||||||
description = "A simple and fast anti-censorship tool written in Go";
|
description = "A simple and fast anti-censorship tool written in Go";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [];
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
broken = false;
|
broken = false;
|
||||||
mainProgram = "spoof-dpi";
|
mainProgram = "spoof-dpi";
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
bonfire,
|
||||||
lib, stdenv,
|
lib, stdenv,
|
||||||
fetchFromGitHub, wrapQtAppsHook,
|
fetchFromGitHub, wrapQtAppsHook,
|
||||||
extra-cmake-modules, cmake,
|
extra-cmake-modules, cmake,
|
||||||
@ -40,6 +41,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
cmakeFlags = [ "-DLauncher_LAYOUT=lin-nodeps" ];
|
cmakeFlags = [ "-DLauncher_LAYOUT=lin-nodeps" ];
|
||||||
|
|
||||||
|
# TODO: fix broken data directory location
|
||||||
postInstall = let
|
postInstall = let
|
||||||
libpath = with xorg; lib.makeLibraryPath [
|
libpath = with xorg; lib.makeLibraryPath [
|
||||||
libX11
|
libX11
|
||||||
@ -68,6 +70,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Cracked Minecraft Launcher";
|
description = "Cracked Minecraft Launcher";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [] ;
|
maintainers = with bonfire.lib.maintainers; [ L-Nafaryus ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user