mirror of
https://github.com/0x5eal/luau-unzip.git
synced 2025-04-01 21:30:55 +01:00
chore(nix): apply formatting with nixpkgs-fmt
This commit is contained in:
parent
7a400f18d6
commit
c514fc7b22
2 changed files with 25 additions and 22 deletions
44
dev.nix
44
dev.nix
|
@ -1,33 +1,35 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.curl
|
||||
pkgs.git
|
||||
pkgs.lune
|
||||
(let version = "6.0-28"; in pkgs.stdenv.mkDerivation {
|
||||
name = "unzip-${version}";
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://ftp.debian.org/debian/pool/main/u/unzip/unzip_${version}_amd64.deb";
|
||||
sha256 = "13h6cm4708p5zczi7fc4qbdlwl1nhnhrk0ncwv9chb1q6jf55ndk";
|
||||
};
|
||||
(
|
||||
let version = "6.0-28"; in pkgs.stdenv.mkDerivation {
|
||||
name = "unzip-${version}";
|
||||
src = pkgs.fetchurl {
|
||||
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 = ''
|
||||
mkdir -p tmp/
|
||||
ar x $src
|
||||
mv data.tar.xz tmp/
|
||||
'';
|
||||
unpackPhase = ''
|
||||
mkdir -p tmp/
|
||||
ar x $src
|
||||
mv data.tar.xz tmp/
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib
|
||||
tar -xf ./tmp/data.tar.xz -C $out
|
||||
mv $out/usr/bin/unzip $out/bin/
|
||||
cp $(pkg-config --variable=libdir bzip2)/libbz2.so.1.0.8 $out/lib/libbz2.so.1.0
|
||||
rm -rf $out/usr tmp/
|
||||
'';
|
||||
})
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib
|
||||
tar -xf ./tmp/data.tar.xz -C $out
|
||||
mv $out/usr/bin/unzip $out/bin/
|
||||
cp $(pkg-config --variable=libdir bzip2)/libbz2.so.1.0.8 $out/lib/libbz2.so.1.0
|
||||
rm -rf $out/usr tmp/
|
||||
'';
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
devpkgs = import ./dev.nix {
|
||||
inherit pkgs;
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
packages.${system}.devShell = devpkgs;
|
||||
defaultPackage.${system} = devpkgs;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue