chore(nix): apply formatting with nixpkgs-fmt

This commit is contained in:
Erica Marigold 2025-02-09 17:16:31 +00:00
parent 7a400f18d6
commit c514fc7b22
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw
2 changed files with 25 additions and 22 deletions

44
dev.nix
View file

@ -1,33 +1,35 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.curl pkgs.curl
pkgs.git pkgs.git
pkgs.lune pkgs.lune
(let version = "6.0-28"; in pkgs.stdenv.mkDerivation { (
name = "unzip-${version}"; let version = "6.0-28"; in pkgs.stdenv.mkDerivation {
src = pkgs.fetchurl { name = "unzip-${version}";
url = "http://ftp.debian.org/debian/pool/main/u/unzip/unzip_${version}_amd64.deb"; src = pkgs.fetchurl {
sha256 = "13h6cm4708p5zczi7fc4qbdlwl1nhnhrk0ncwv9chb1q6jf55ndk"; url = "http://ftp.debian.org/debian/pool/main/u/unzip/unzip_${version}_amd64.deb";
}; sha256 = "13h6cm4708p5zczi7fc4qbdlwl1nhnhrk0ncwv9chb1q6jf55ndk";
};
buildInputs = [ pkgs.binutils pkgs.gnutar pkgs.bzip2 pkgs.pkg-config ]; buildInputs = [ pkgs.binutils pkgs.gnutar pkgs.bzip2 pkgs.pkg-config ];
unpackPhase = '' unpackPhase = ''
mkdir -p tmp/ mkdir -p tmp/
ar x $src ar x $src
mv data.tar.xz tmp/ mv data.tar.xz tmp/
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/lib mkdir -p $out/bin $out/lib
tar -xf ./tmp/data.tar.xz -C $out tar -xf ./tmp/data.tar.xz -C $out
mv $out/usr/bin/unzip $out/bin/ mv $out/usr/bin/unzip $out/bin/
cp $(pkg-config --variable=libdir bzip2)/libbz2.so.1.0.8 $out/lib/libbz2.so.1.0 cp $(pkg-config --variable=libdir bzip2)/libbz2.so.1.0.8 $out/lib/libbz2.so.1.0
rm -rf $out/usr tmp/ rm -rf $out/usr tmp/
''; '';
}) }
)
]; ];
shellHook = '' shellHook = ''

View file

@ -11,7 +11,8 @@
devpkgs = import ./dev.nix { devpkgs = import ./dev.nix {
inherit pkgs; inherit pkgs;
}; };
in { in
{
packages.${system}.devShell = devpkgs; packages.${system}.devShell = devpkgs;
defaultPackage.${system} = devpkgs; defaultPackage.${system} = devpkgs;
}; };