This repository has been archived on 2024-04-17. You can view files and clone it, but cannot push or open issues/pull-requests.
|
{ pkgs ? import <nixpkgs> { }, ... }:
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "similar-sort";
|
|
buildInputs = [ pkgs.go ];
|
|
src = ./.;
|
|
|
|
buildPhase = ''
|
|
env HOME=$(pwd) GOPATH=$(pwd) go build similar-sort.go
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp similar-sort $out/bin
|
|
'';
|
|
}
|