Skip to content

Commit

Permalink
feat(nixos): packaging torque (transmission tui)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagy135 committed Feb 15, 2022
1 parent f7d370e commit fc24fd1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions nixos/torque.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
with (import <nixpkgs> { });

stdenvNoCC.mkDerivation rec {
pname = "torque";
version = "2022-02-10";

src = fetchFromGitHub {
owner = "dylanaraps";
repo = "torque";
rev = "567a94bc4f483fb96b514190768a9e6012b94f0b";
sha256 = "1jwx6z0iwx7ii13wknylmjy58j645nvrmfasgr325cffwqx51j7f";
};

strictDeps = true;
buildInputs = [ bash transmission ];

installPhase = ''
OUT=${placeholder "out"}
mkdir -p $OUT
mkdir -p $OUT/bin
cp -r ${src} $OUT
cp ${src}/torque $OUT/bin/torque
'';
}

0 comments on commit fc24fd1

Please sign in to comment.