mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 11:22:23 +00:00
35 lines
903 B
Nix
35 lines
903 B
Nix
|
{ pkgs ? import <nixpkgs> { } }:
|
||
|
let
|
||
|
|
||
|
scr = pkgs.fetchFromGitHub {
|
||
|
owner = "6gk";
|
||
|
repo = "scr";
|
||
|
rev = "4064159e291e59f4543a676b872c91fe049a3f1e";
|
||
|
sha256 = "1pq0w3qpap6rsgxashphq5xlhvdyhryjaz7dh0l5rfmh7ydpzf12";
|
||
|
};
|
||
|
in
|
||
|
pkgs.runCommand "scr"
|
||
|
{ buildInputs = with pkgs; [ slop ffmpeg dmenu xclip shotgun ]; }
|
||
|
''
|
||
|
mkdir -p $out/bin
|
||
|
cp ${scr}/scr $out/bin/scr
|
||
|
sed -i "2 i export PATH=$PATH" $out/bin/scr
|
||
|
''
|
||
|
|
||
|
|
||
|
#pkgs.stdenv.mkDerivation {
|
||
|
#name = "scr";
|
||
|
#src = pkgs.fetchFromGitHub {
|
||
|
#owner = "6gk";
|
||
|
#repo = "scr";
|
||
|
#rev = "4064159e291e59f4543a676b872c91fe049a3f1e";
|
||
|
#sha256 = "1pq0w3qpap6rsgxashphq5xlhvdyhryjaz7dh0l5rfmh7ydpzf12";
|
||
|
#};
|
||
|
|
||
|
#nativeBuildInputs = [ pkgs.makeWrapper ];
|
||
|
#installPhase = "install -m755 -D ./scr $out/bin/scr";
|
||
|
#postFixup = ''
|
||
|
#wrapProgram "$out/bin/scr" --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [ slop ffmpeg dmenu xclip shotgun ])}
|
||
|
#'';
|
||
|
#}
|