Skip to content

Commit

Permalink
add a nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Sep 6, 2024
1 parent 561bfc8 commit fe9af32
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib, stdenv, go, fetchGit }:

stdenv.mkDerivation rec {
pname = "pipet";
version = "unstable-2024-09-06";

src = fetchGit {
url = "https://github.com/bjesus/pipet.git";
rev = "main";
};

buildInputs = [ go ];

buildPhase = ''
export GOPATH="$PWD/go"
mkdir -p $GOPATH/src/github.com/bjesus
ln -s $src $GOPATH/src/github.com/bjesus/pipet
cd $GOPATH/src/github.com/bjesus/pipet/cmd/pipet
go build -o $out/bin/pipet
'';

installPhase = ''
mkdir -p $out/bin
mv pipet $out/bin/
'';

meta = with lib; {
description = "a swiss-army tool for scraping and extracting data from online assets, made for hackers";
homepage = "https://github.com/bjesus/pipet";
license = licenses.mit;
maintainers = [ "Yo'av Moshe" ];
};
}

0 comments on commit fe9af32

Please sign in to comment.