Reorganize nix files
This commit is contained in:
parent
cb98d37133
commit
f0e6a9f195
3 changed files with 13 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, stdenv, glibc }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "inkpot-cli";
|
pname = "inkpot-cli";
|
||||||
|
|
@ -7,6 +7,12 @@ buildGoModule rec {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
vendorSha256 = "sha256-W+oAjjRYXoKM20nubO0y2yUA4WRjOn7zki3pIf9TMvc=";
|
vendorSha256 = "sha256-W+oAjjRYXoKM20nubO0y2yUA4WRjOn7zki3pIf9TMvc=";
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
stdenv
|
||||||
|
glibc.static
|
||||||
|
];
|
||||||
|
ldflags = "-linkmode external -extldflags -static";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line tool to customize Spotify client";
|
description = "Command-line tool to customize Spotify client";
|
||||||
homepage = "https://github.com/khanhas/spicetify-cli/";
|
homepage = "https://github.com/khanhas/spicetify-cli/";
|
||||||
|
|
|
||||||
13
flake.nix
13
flake.nix
|
|
@ -8,16 +8,7 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
in {
|
in {
|
||||||
devShell.${system} = pkgs.mkShell rec {
|
defaultPackage.${system} = pkgs.callPackage ./default.nix {};
|
||||||
buildInputs = with pkgs; [
|
devShell.${system} = pkgs.callPackage ./shell.nix {};
|
||||||
go
|
|
||||||
gopls
|
|
||||||
stdenv
|
|
||||||
glibc.static
|
|
||||||
];
|
|
||||||
|
|
||||||
CFLAGS="-I${pkgs.glibc.dev}/include";
|
|
||||||
LDFLAGS="-L${pkgs.glibc}/lib";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
shell.nix
Normal file
4
shell.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{ mkShell, go, gopls }:
|
||||||
|
mkShell rec {
|
||||||
|
buildInputs = [ go gopls ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue