chore: move fix to override
This commit is contained in:
parent
6ddb5d9e6b
commit
e2f8b16c87
8 changed files with 6 additions and 6 deletions
4
nix/override/default.nix
Normal file
4
nix/override/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#{pkgs, ...}:{
|
||||
# hello = pkgs.callPackage ./ncspot.nix;
|
||||
#}
|
||||
{}
|
||||
77
nix/override/ncspot.nix
Normal file
77
nix/override/ncspot.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ pkgs
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, withALSA ? false
|
||||
, withClipboard ? true
|
||||
, withCover ? false
|
||||
, withPulseAudio ? true
|
||||
, withPortAudio ? false
|
||||
, withMPRIS ? true
|
||||
, withNotify ? true
|
||||
, withCross ? true
|
||||
, nix-update-script
|
||||
, testers
|
||||
, ncspot
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ncspot";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hrkfdn";
|
||||
repo = "ncspot";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-RgA3jV/vD6qgIVQCZ0Sm+9CST4SlqN4MUurVM3nIdh0=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-8ZUgm1O4NmZpxgNRKnh1MNhiFNoBWQHo22kyP3hWJwI=";
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ]
|
||||
++ lib.optional withClipboard pkgs.python3;
|
||||
|
||||
buildInputs = [ pkgs.ncurses ]
|
||||
++ lib.optional stdenv.isLinux pkgs.openssl
|
||||
++ lib.optional withALSA pkgs.alsa-lib
|
||||
++ lib.optional withClipboard pkgs.xorg.libxcb
|
||||
++ lib.optional withCover pkgs.ueberzug
|
||||
++ lib.optional withPulseAudio pkgs.libpulseaudio
|
||||
++ lib.optional withPortAudio pkgs.portaudio
|
||||
++ lib.optional (withMPRIS || withNotify) pkgs.dbus
|
||||
++ lib.optional stdenv.isDarwin pkgs.Cocoa;
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DNCURSES_UNCTRL_H_incl";
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
|
||||
buildFeatures = [ "cursive/pancurses-backend" ]
|
||||
++ lib.optional withALSA "alsa_backend"
|
||||
++ lib.optional withClipboard "share_clipboard"
|
||||
++ lib.optional withCover "cover"
|
||||
++ lib.optional withPulseAudio "pulseaudio_backend"
|
||||
++ lib.optional withPortAudio "portaudio_backend"
|
||||
++ lib.optional withMPRIS "mpris"
|
||||
++ lib.optional withCross "crossterm_backend"
|
||||
++ lib.optional withNotify "notify";
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion { package = ncspot; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";
|
||||
homepage = "https://github.com/hrkfdn/ncspot";
|
||||
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ marsam liff ];
|
||||
mainProgram = "ncspot";
|
||||
};
|
||||
}
|
||||
46
nix/override/oxicalc.nix
Normal file
46
nix/override/oxicalc.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxicalc";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiCalc";
|
||||
rev = "${version}";
|
||||
hash = "sha256-7qrnA0jnLg2mckpxCe66+axU3jE6nOBu7HefmP8I2Xc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-nxLXT9SVorsgj7qzwX8Ipx8SDvyTYMAcpepTg62QL7o=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
gtk4
|
||||
libadwaita
|
||||
];
|
||||
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=444 $src/${pname}.desktop $out/share/applications/${pname}.desktop
|
||||
install -D --mode=444 $src/${pname}.svg $out/share/pixmaps/${pname}.svg
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small, simple calculator written in rust/gtk4";
|
||||
homepage = "https://github.com/DashieTM/OxiCalc";
|
||||
changelog = "https://github.com/DashieTM/OxiCalc/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxicalc";
|
||||
};
|
||||
}
|
||||
52
nix/override/oxidash.nix
Normal file
52
nix/override/oxidash.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxidash";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiDash";
|
||||
rev = "${version}";
|
||||
hash = "sha256-GVkmqwn3mHriMHUfEej4LW0MaYURqtsftC5L+Cox+5E=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-seFHiBht0vc+iqQw5bd22qVvdhCMqDthWuth3NTm8OY=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config glib ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk4
|
||||
gtk4-layer-shell
|
||||
libadwaita
|
||||
];
|
||||
|
||||
#postInstall = ''
|
||||
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
#'';
|
||||
|
||||
#passthru = {
|
||||
# updateScript = nix-update-script { };
|
||||
# tests.version = testers.testVersion { package = oxinoti; };
|
||||
#};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiDash";
|
||||
changelog = "https://github.com/DashieTM/OxiDash/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxidash";
|
||||
};
|
||||
}
|
||||
51
nix/override/oxinoti.nix
Normal file
51
nix/override/oxinoti.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxinoti";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiNoti";
|
||||
rev = "${version}";
|
||||
hash = "sha256-XZMfJ2kUTd8+XiDgZFbG1sOPt37e4M+1rgp4Bdlej7s=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-jIdev6K5MQ8jASDo1KWU89rSLd9UhI2MhTT4l7pP+tA=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk3
|
||||
gtk-layer-shell
|
||||
];
|
||||
|
||||
#postInstall = ''
|
||||
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
#'';
|
||||
|
||||
#passthru = {
|
||||
# updateScript = nix-update-script { };
|
||||
# tests.version = testers.testVersion { package = oxinoti; };
|
||||
#};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiNoti";
|
||||
changelog = "https://github.com/DashieTM/OxiNoti/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxinoti";
|
||||
};
|
||||
}
|
||||
42
nix/override/oxipaste.nix
Normal file
42
nix/override/oxipaste.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxipaste";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiPaste";
|
||||
rev = "${version}";
|
||||
hash = "sha256-2copt808b4cpmE8HO2H960xLs7OegvOUYYS/6z7fNMk=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-RXaL5y0hohP9VJ7IJCEfdJjyxwY2l555xSwRa9ZiNKc=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk4
|
||||
libadwaita
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiPaste";
|
||||
changelog = "https://github.com/DashieTM/OxiPaste/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxipaste";
|
||||
};
|
||||
}
|
||||
41
nix/override/oxishut.nix
Normal file
41
nix/override/oxishut.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxishut";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiShut";
|
||||
rev = "${version}";
|
||||
hash = "sha256-aCNnNxmIHq+IjjviWNGSHfdXT55s367GTAeQoaTZ/KA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-UeoBSHwMGfhkgRT7kmelcG3/omtB03Wh4IZrTy3yf3Y=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config glib ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
gtk4
|
||||
libadwaita
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "";
|
||||
homepage = "https://github.com/DashieTM/OxiShut";
|
||||
changelog = "https://github.com/DashieTM/OxiShut/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxishut";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue