Add more packages to the NUR
parent
843da5466e
commit
3fb26afa85
@ -0,0 +1,3 @@
|
||||
{ pkgs, ... }: {
|
||||
spectre-el = pkgs.callPackage spectre-el.nix {};
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
{ lib, stdenv, fetchgit, meson, ninja, pkg-config, callPackage, emacs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spectre-el";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/nyxkrage/spectre-emacs";
|
||||
rev = "41a9258710ec21fcbb94c80f456da04c9760cf45";
|
||||
sha256 = "sha256-zd2yR3y0GnCC0CGx8ij+Kag+8TRRxOqhUwQ2T5ncDEI=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
emacs
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
(callPackage ../libspectre {})
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
meson setup build --libdir $out/share/emacs/site-lisp/elpa/${pname}-${version}
|
||||
cd build
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
ninja
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/emacs/site-lisp/elpa/${pname}-${version}
|
||||
ninja install
|
||||
cd ..
|
||||
cp spectre.el $out/share/emacs/site-lisp/elpa/${pname}-${version}
|
||||
'';
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Spectre Password Manager for Emacs";
|
||||
homepage = "https://spectre.app/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ nyxkrage ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
{ lib, stdenv, fetchgit, libsodium, meson, pkg-config, ninja }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libspectre";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/nyxkrage/spectre-lib";
|
||||
rev = "da65b8ac4502eb7ec0f0ce57c5d6d6bf79b1d3e4";
|
||||
sha256 = "sha256-iHhUPNl1GkVLRJNAMqvyDpTU1dXUDWnwgFOnRGo7Ikc=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libsodium
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modern and easy-to-use crypto library";
|
||||
homepage = "https://spectre.app/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ nyxkrage ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
{ pkgs
|
||||
, mach-nixpkgs
|
||||
, mach-nix
|
||||
, system ? builtins.currentSystem
|
||||
, ...
|
||||
}: pkgs.stdenv.mkDerivation rec {
|
||||
pname = "rec-mono-nyx";
|
||||
version = "1.0.0";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/arrowtype/recursive-code-config.git";
|
||||
rev = "c20977eb1f3cd59ca7ce03a740b4745f0d299b27";
|
||||
sha256 = "sha256-OaYhOCpjOZI3cIPUNhppqGAQOrGwuQ09tl1pXCtNj5s=";
|
||||
};
|
||||
|
||||
recConfig = builtins.toJSON {
|
||||
"Family Name" = "Nyx";
|
||||
Fonts = {
|
||||
Regular = {
|
||||
MONO = 1;
|
||||
CASL = 1;
|
||||
wght = 500;
|
||||
slnt = 0;
|
||||
CRSV = 0;
|
||||
};
|
||||
|
||||
Italic = {
|
||||
MONO = 1;
|
||||
CASL = 1;
|
||||
wght = 500;
|
||||
slnt = -12;
|
||||
CRSV = 0;
|
||||
};
|
||||
|
||||
Bold = {
|
||||
MONO = 1;
|
||||
CASL = 1;
|
||||
wght = 800;
|
||||
slnt = 0;
|
||||
CRSV = 0;
|
||||
};
|
||||
|
||||
"Bold Italic" = {
|
||||
MONO = 1;
|
||||
CASL = 1;
|
||||
wght = 800;
|
||||
slnt = -12;
|
||||
CRSV = 0;
|
||||
};
|
||||
};
|
||||
"Code Ligatures" = false;
|
||||
Features = [
|
||||
"ss01"
|
||||
"ss02"
|
||||
"ss03"
|
||||
"ss04"
|
||||
"ss05"
|
||||
"ss06"
|
||||
"ss08"
|
||||
"ss10"
|
||||
"ss11"
|
||||
"ss12"
|
||||
];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
(mach-nix.lib."${system}".mkPython {
|
||||
requirements = builtins.readFile "${src}/requirements.txt";
|
||||
_.pyyaml.doInstallCheck = false;
|
||||
ignoreDataOutdated = true;
|
||||
python = "python39";
|
||||
})
|
||||
mach-nixpkgs.python39Packages.pip
|
||||
mach-nixpkgs.python39Packages.setuptools
|
||||
];
|
||||
|
||||
outputs = [ "out" ];
|
||||
phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ];
|
||||
|
||||
buildPhase = ''
|
||||
echo '${recConfig}' > config.yaml
|
||||
python3 scripts/instantiate-code-fonts.py
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype/
|
||||
cp fonts/RecMonoNyx/* $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Recusrive Mono - Nyx Style";
|
||||
homepage = "https://spectre.app/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ nyxkrage ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue